SQL Cheatsheet - jiaxw32/iNote GitHub Wiki

Sqlite 常用清单

列表数据库有所有表

.table

查看所有表结构

/* 方法1 */
.schema
/* 方法2 */
select * from sqlite_master where type="table";

所有指定数据表结构

/* 方法1 */
.schema <tablename>
/* 方法2 */
select * from sqlite_master where type = 'table' and  name="table_name";
⚠️ **GitHub.com Fallback** ⚠️