I have a very simple query
select *
from tablename
where keyvar is not null
order by keyvar
The query worked before but for some reason now I am getting an error:
Error:Error formatting SQL query: empty string given as argument for ! character
Anyone has any idea why I am getting this error? Any help hugely appreciated
PS: If I run the whole code again from scratch (creating the database, loading the csv file etc) the query works fine.
USE dbname;
before your query?