Open swuecho opened 8 years ago
https://www.sqlite.org/lang_keywords.html
Try textql --header --sql "count(1) from [1234]" 1234.csv
And yes, I need to support this quoting in the SQL parser :)
thanks. quote the table name works, although select can not be omitted.
➜ textql --header --sql "count(1) from [1234]" 1234.csv
2016/05/07 12:59:45 near "count": syntax error
➜ textql --header --sql "select count(1) from [1234]" 1234.csv
268486
BTW, great work! Thanks.
Thanks @swuecho for reporting this issue, I didn't think of renaming the file ;)
@dinedal don't need to rush on this one, the workarounds work well ;)
rename the 1234.csv to sample.csv works