Linux查看SQLite的表结构-zt

上一篇 / 下一篇  2011-04-18 11:07:05 / 个人分类:sqlite

转自:http://www.linuxidc.com/Linux/2010-12/30955.htm

 

如果想在Linux下列出该SQLite数据库中的所有表,可:

.table

 

如果想查看这些表的结构:

select * from sqlite_master where type="table";

 

查看某个表的表结构

select * from sqlite_master where type="table" and name="emperors";

也可以通过命令:.schema emperors


相关阅读:

TAG: sqlite 表结构 查看

 

评分:0

我来说两句

Open Toolbar