sqlite查询数据库中存在的所有表

前端之家收集整理的这篇文章主要介绍了sqlite查询数据库中存在的所有表前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

From within a C/C++ program (or a script using Tcl/Ruby/Perl/Python bindings) you can get access to table and index names by doing a SELECT on a special table named "sqlITE_MASTER ". Every sqlite database has an sqlITE_MASTER table that defines the schema for the database.

sql code
   
   
SELECT name FROM sqlite_master
WHERE type = ' table '
ORDER BY name;
原文链接:/sqlite/202997.html

猜你在找的Sqlite相关文章