SQLite Schema Information Metadata

后端 未结 7 1028
终归单人心
终归单人心 2020-11-27 03:46

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

7条回答
  •  自闭症患者
    2020-11-27 04:04

    Try this sqlite table schema parser, I implemented the sqlite table parser for parsing the table definitions in PHP.

    It returns the full definitions (unique, primary key, type, precision, not null, references, table constraints... etc)

    https://github.com/maghead/sqlite-parser

    The syntax follows sqlite create table statement syntax: http://www.sqlite.org/lang_createtable.html

提交回复
热议问题