1.如何查询Sqlite 数据库中的所有表信息
From within a c/c++ program (or a scritpt using tcl/Ruby/Perl/Python bindings),you can get access to table and index names by doing a select on a special table named "SQULITE_MASTER",Every SQLite database has an SQLITE_MASTER table that defines the schema for the database ;
比如:
sqlite> select name from sqlite_master where type='table' order by name;
name = carts
name = line_items
name = orders
name = products
name = schema_migrations
name = sqlite_sequence
>>>>>=======================================
或者直接使用此命令 .tables
或者使用简写 .tab
sqlite> .tables
carts orders schema_migrations
line_items products users
2.如何删除Sqlite 数据库中某一张表中的所有数据
命令 delete from table_name;
sqlite > delete from users;
分享到:
相关推荐
SQLite开发笔记3--在arm-linux平台上建立嵌入式C数据库(SQLite 3.6.5)的使用笔记
sqlite3学习笔记
对数据库SQlite知识的学习认识、笔记总结详解
ios 基于sqlite3笔记本代码, 请实用max xcode 打开。
android数据库SQLite学习笔记.pdf
SQLite 用C语言开发的必读入门笔记
android 数据库SQLite学习笔记.docx
LV.11 D1-D2 SQLite数据库笔记
SQLite详细的学习笔记,包括数据库的详细操作说明
3 使用SQLite数据库存储数据,不用安装数据库 4 实现快速查询功能 5 提供新增和修改笔记的功能 6 最终效果图可以参考:https://blog.csdn.net/zxy13826134783/article/details/131022592?spm=1001.2014.3001.5501
针对 SQLite笔记1的源代码 环境VC++6.0 C语言 注意添加.dll
xamarin学习笔记A10(安卓SQLite)
Android Sqlite3 学习笔记.详细讲解了android内嵌的数据库Sqlite3的内容,供初学者使用
mac下sqlite超好用可视化工具sqlitestudio
解压后代码包括安卓sqlite基本使用,相关注意点有备注。代码中还包含了litepal的使用,学习郭神框架时使用
基于MFC和Sqlite3库开发的简单笔记程序,仅供学习,如有BUG请发邮件到lkwuqingdao@126.com,大家一起学习进步;
WPF实现持久化笔记本,MVVM模式,依赖注入
sqlcipher加密sqlite数据库练习,内附练习笔记和原始的教程笔记。
本程序基于android实现,基本功能包括记录日记、删除日记、编辑日记、查看日记等功能,数据库采用sqlite,程序界面美观。
Android学习笔记-SQLite介绍-以及使用Sqlite-进行数据库的创建-完成数据.pdf