0

I am trying to query SQLite in flask using the following

cur = g.db.execute('select * from movies where category = action')

but I receive the following error

OperationalError: no such column: action

How can I execute the query?

1 Answer 1

3

You should quote action to make it a string and not a column.

 cur = g.db.execute('select * from movies where category = "action"')
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.