In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Xiaobian to share with you what SQLite sqlite_master table is used for, I hope you have something to gain after reading this article, let's discuss it together!
SQLite sqlite_master table
The sqlite_master table is a system table for SQLite. This table records table, index, view, and trigger information saved in the database. Each line records one item. This table is automatically created when you create an SQLIte database. The sqlite_master table contains five columns.
The type column records the type of item, such as table, index, view, trigger.
The name column records the name of the item, such as table name, index name, etc.
The tbl_name column records the name of the subordinate table, such as the name of the table where the index is located. For tables, the column is the table name itself.
The rootpage column records the number of items stored in the database page. For views and triggers, this column value is 0 or NULL.
The sql column records the SQL statement that created the item.
Because the sqlite_master table stores all database entries, it can be used to determine whether a particular table, view, or index exists. For example, the following statement determines whether the user table exists.
select count(*) from sqlite_master where name='user' and type='table'
After reading this article, I believe you have a certain understanding of "SQLite sqlite_master table". If you want to know more about it, please pay attention to the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.