I need to get column names and their tables in a SQLite database. What I need is a resultset with 2 columns: table_name | column_name
.
In MySQL, I\'m a
FYI, if you're using .Net you can use the DbConnection.GetSchema
method to retrieve information that usually is in INFORMATION_SCHEMA. If you have an abstraction layer you can have the same code for all types of databases (NOTE that MySQL seems to swich the 1st 2 arguments of the restrictions array).