当前位置:网站首页>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
边栏推荐
- Tag dynamic programming - preliminary knowledge for question brushing -2 0-1 knapsack theory foundation and two-dimensional array solution template
- 交叉编译环境出现.so链接文件找不到问题
- 软考备战多媒体系统
- 你了解如何比较两个对象吗
- 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
- CD-CompactDisk
- 博云,站在中国容器潮头
- Chinese (Simplified) language pack
- DVD-数字通用光盘
- JS common regular expressions
猜你喜欢

CD-CompactDisk

Runtimeerror: CUDA error: out of memory own solution (it is estimated that it is not applicable to most people in special circumstances)

Case study of row lock and isolation level

pycharm如何修改多行注释快捷键

Tag dynamic programming - preliminary knowledge for question brushing -2 0-1 knapsack theory foundation and two-dimensional array solution template

Let torch cuda. is_ Experience of available() changing from false to true

让torch.cuda.is_available()从false变成true的一点经验

Row lock analysis and deadlock

JVM entry Door (1)

贝叶斯网络详解
随机推荐
股票开账户如何优惠开户?现在在线开户安全么?
(必须掌握的多线程知识点)认识线程,创建线程,使用Thread的常见方法及属性,以及线程的状态和状态转移的意义
DoS及攻擊方法詳解
Temporarily turn off MySQL cache
Paging query and join Association query optimization
Usage and difference between ros:: spinonce() and ros:: spin()
[QNX] Command
比较两个对象的大小关系原来可以如此花里胡哨
JVM entry door (1)
DVD digital universal disc
(multi threading knowledge points that must be mastered) understand threads, create threads, common methods and properties of using threads, and the meaning of thread state and state transition
Row lock analysis and deadlock
Dos et détails de la méthode d'attaque
数据加密标准(DES)概念及工作原理
JS 常用正则表达式
Analysis of deep security definition and encryption technology
非对称密码体制详解
Take you to resolve hash conflicts and implement a simple hash table,
Decision tree and random forest
Introduction to Ethereum Technology Architecture