"Gheorghita Suciu" <coderg...@googlemail.com>
wrote in message
news:80bfa2aa0904090603o6a5b5b44uf0cda774631c0...@mail.gmail.com
> I'm trying to find which column is the primary key column for a table
> inside an sqlite database.

PRAGMA table_info(tableName);

Note that a primary key may be comprised of more than one column, or 
there may not be one at all.

Igor Tandetnik 



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to