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

Sheldon
  • 9,639
  • 20
  • 59
  • 96
  • 3
    Possible duplicate: http://stackoverflow.com/questions/3330435/is-there-a-sqlite-equivalent-to-mysqls-describe-table – Shubham Jun 29 '12 at 07:17

1 Answers1

3

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

Uku Loskit
  • 40,868
  • 9
  • 92
  • 93