1

Why am I getting a syntax error with the following line?

statement = self.sql.execute("DESCRIBE TEST")

I get the following error:

sqlite3.OperationalError: near "DESCRIBE": syntax error

1

1 Answer 1

3

DESCRIBE is not a valid sqlite3 command, use .schema TEST

Sign up to request clarification or add additional context in comments.

2 Comments

If I do statement = self.sql.execute(".schema TEST") I get: "OperationalError: near ".": syntax error"
that only works on the sqlite shell I believe

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.