On 1/11/2012 3:53 PM, inq1ltd wrote:
Can someone tell me how to get the column names
contained in a table on the fly.

Prepare a statement of the form "select * from mytable;" (no need to actually run it), then use sqlite3_column_count and sqlite3_column_name[16].

Alternatively, execute PRAGMA table_info(mytable), and examine the resultset.
--
Igor Tandetnik

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

Reply via email to