tags:

views:

298

answers:

2

Is there some command like "show columns from TABLENAME"? I only know that .dump command, but that's really dumb in this case. It puts out all the data, too.

I need something to just see the table structure.

A: 

select * from sqlite_master

should work I think.

Mladen Mihajlovic
+3  A: 

You'll need to use a PRAGMA.

PRAGMA table_info(TABLENAME);

DNS