I’m using the Firefox sqlite manager addon and I have a database table named – drinktable. I need to extract all the columns where the title matches a certain string. This is the query I am running right now –
SELECT * FROM drinktable where title = 'First Drink';
But it won’t return anything. It just shows the 4 columns in the database, but nothing in those columns. Can someone please tell me why ?
One thing in your question. Your table name is
drinktableand you are querying againstfirst, is it a typo. In SQL Select statement you specify table name after from and column name in where clauseIf your table name is first and column name is drinktable then chances are that there are now row(s) with column
drinktableset to ‘First Drink’. You might have spaces or some other characters. TryEDIT:
Based on your edited question, chances are you have spaces or some other characters, try: