SELECT sql FROM sqlite_master
WHERE tbl_name="table_name" AND type="table"
Then parse this value with Reg Exp (it’s easy) which could looks similar to this: [(.*?)]
Alternatively you can use:
PRAGMA table_info(table_name)
More Related Contents:
- near “varchar”: syntax error [closed]
- How do I make an UPDATE while joining tables on SQLite?
- How do I rename a column in a SQLite database table?
- How do I check in SQLite whether a table exists?
- How to set Sqlite3 to be case insensitive when string comparing?
- Escape single quote character for use in an SQLite query
- Difference between 2 dates in SQLite
- Update with Join in SQLite
- Can I read and write to a SQLite database concurrently from multiple connections?
- How do I store and retrieve a blob from sqlite?
- SQLite error ‘attempt to write a readonly database’ during insert?
- Store boolean value in SQLite
- Can SQLite support multiple users?
- SQLite add Primary Key
- Encrypted cookies in Chrome
- How delete table inner join with other table in Sqlite?
- Export from sqlite to csv using shell script
- ALTER TABLE ADD COLUMN IF NOT EXISTS in SQLite
- Create table in SQLite only if it doesn’t exist already
- How do DATETIME values work in SQLite?
- Add ON DELETE CASCADE behavior to an sqlite3 table after it has been created
- sqlite get ROWID
- How to have an automatic timestamp in SQLite?
- svn cleanup: sqlite: database disk image is malformed
- SELECT INTO statement in sqlite
- How to display blob value using x’abc’ binary string literal syntax?
- Unable to load DLL sqlite3 in Universal Windows App running on Mobile
- Integration Testing Entity Framework code first with in-memory database
- DbFunctions.TruncateTime LINQ equivalent in EF CORE
- How to get the number of rows of the selected result from sqlite3?