Open loque opened 8 years ago
Hi Lucas,
[ ]
to enclose these 'multiword' name (not only backquotes
) like :SELECT ... AS [Fancy Name] FROM table_name
SELECT ... AS "Fancy Name" FROM table_name
I will check the parser grammar rules for this syntax.
Hi @agershun,
Good to know about the []
!
Exactly, the syntax in the following examples did not work:
SELECT ... AS "Fancy Name" FROM table_name
SELECT ... AS 'Fancy Name' FROM table_name
Btw, I really appreciate the work you've done with AlaSQL!
I've found a problem when alasql parses the query string. When trying to give a column an alias with spaces I got errors when using
"
and'
. I think it would be useful to explain in the wiki that aliases can only be quoted like this:For reference, the error messages I got where, in Chromium
SyntaxError: Unexpected identifier
, and in FirefoxSyntaxError: missin ] in index expression