当前位置:网站首页>System table SQLite of SQLite database_ master
System table SQLite of SQLite database_ master
2022-06-26 18:14:00 【yanruo06280】
sqlite System table of database sqlite_master
1、 summary
every last sqlite There is a database called sqlite_master Table of , The schema used to define the database . This table records the information of all tables in the database , For example, the name of the table 、 Used to create this table sql sentence 、 Indexes 、 The table to which the index belongs 、 Creating indexed sql Statement etc. .
2、 The table structure is as follows :
Field name Is the name of all the tables , And for the tables you create , Field type Forever ‘table’
create table sqlite_master(
type text,
name text,
tbl_name text,
rootpage intger,
sql text
);
3、 Common application scenarios
① Query table information
select * from sqlite_master
where type=’table’ and name=‘ Table name ’;
② Query index information
If you want to query index information , be type Field is “index”,name The field is the index name , Returns... In the result tbl_name The field is the table to which the index belongs ,sql The field is the... That created this index sql sentence
select * from sqlite_master where type=’index’ and name=‘ Index name ’;
reference :https://blog.csdn.net/jingcheng345413/article/details/70155254
边栏推荐
- Introduction to Ethereum Technology Architecture
- KDD 2022 | how to use comparative learning in cross domain recommendation?
- PC end records 515 ground sweeping robot /scan data
- RSA concept explanation and tool recommendation - LMN
- MySQL的MVCC机制详解
- Paging query and join Association query optimization
- Several delete operations in SQL
- How to open a stock account? Is it safe to open an account online now?
- transforms.RandomCrop()的输入只能是PIL image 不能是tensor
- 深度学习之Numpy篇
猜你喜欢
next(iter(dataloader))的一点点体会
JVM入个门(1)
非对称密码体制详解
RSA encryption and decryption details
DoS及攻擊方法詳解
CD-CompactDisk
Interview key points that must be mastered index and affairs (with B-tree and b+ tree)
深入理解MySQL锁与事务隔离级别
MySQL download and configuration MySQL remote control
wechat_ Solve the problem of page Jump and parameter transfer by navigator in wechat applet
随机推荐
数字签名标准(DSS)
Class inheritance of 25class
JS 常用正则表达式
决策树与随机森林
LeetCode 128最长连续序列
The cross compilation environment appears So link file not found problem
JS cast
Procedure steps for burning a disc
LeetCode 238 除自身以外数组的乘积
临时关闭MySQL缓存
ISO文件
如何创建并强制使用索引
腾讯钱智明:信息流业务中的预训练方法探索与应用实践
JVM入個門(1)
VCD-影音光碟
Handwritten promise all
行锁与隔离级别案例分析
新手炒股开户选哪个证券公司比较好?怎样炒股比较安全??
No manual prior is required! HKU & Tongji & lunarai & Kuangshi proposed self supervised visual representation learning based on semantic grouping, which significantly improved the tasks of target dete
Paging query and join Association query optimization