当前位置:网站首页>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
边栏推荐
- next(iter(dataloader))的一点点体会
- ISO documents
- 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
- 如何创建并强制使用索引
- RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
- Idea collection code, quickly open favorites collection window
- 数据加密标准DES安全性
- Clion编译catkin_ws(ROS工作空间包的简称)加载CMakeLists.txt出现的问题
- 数据加密标准(DES)概念及工作原理
- Case study of row lock and isolation level
猜你喜欢

Boyun, standing at the forefront of China's container industry

爬取豆瓣读书Top250,导入sqlist数据库(或excel表格)中

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

交叉编译环境出现.so链接文件找不到问题

LeetCode 128最长连续序列

How pycharm modifies multiline annotation shortcuts

JVM entry Door (1)

行锁分析和死锁

数据加密标准(DES)概念及工作原理

Binary search-1
随机推荐
软考备战多媒体系统
数字签名标准(DSS)
MySQL download and configuration MySQL remote control
JNI的 静态注册与动态注册
Leetcode 128 longest continuous sequence
贝叶斯网络详解
Idea collection code, quickly open favorites collection window
无需人工先验!港大&同济&LunarAI&旷视提出基于语义分组的自监督视觉表征学习,显著提升目标检测、实例分割和语义分割任务!
50行代码爬取Top500图书导入TXT文档
RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
properties文件乱码
PC端录制扫515地机器人/scan数据
Leetcode interview question 29 clockwise print matrix
Regular match same character
ISO documents
比较两个对象的大小关系原来可以如此花里胡哨
行锁与隔离级别案例分析
transforms.RandomCrop()的输入只能是PIL image 不能是tensor
KDD 2022 | how to use comparative learning in cross domain recommendation?
JVM entry door (1)