Skip to content

SQL Cheatsheet

jiaxw32 edited this page Oct 28, 2021 · 2 revisions

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";
Clone this wiki locally