sqlite3常用命令

前端之家收集整理的这篇文章主要介绍了sqlite3常用命令前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

sqlite无需任何配置和安装,只要将下载下来的shell文件解压到任何你觉得合适的地方,然后将其加入到path环境变量就可以了

(加入path环境变量是为了直接在命令行使用sqlite3,不加的话需要详细的指定sqlite3的路径,如d:/sqlite/sqlite3)。

sqlite3 不支持存储过程!

打开数据库

sqlite3 localdata/861365_data/all.db

查看帮助:

.help

退出

.exit

查看表格:

.table

连库:

attach 'C:\Users\huangzhiqiang03\Desktop\wl_test\464771.ttfa' as 'ttttttffffff'

detachttttttffffff;

使用attach的表,加上前缀就好,比如select * from ttttttffff.nav_link

参看:

常用语法:http://www.runoob.com/sqlite/sqlite-syntax.html

http://www.jb51.cc/article/p-elnmcfgr-beq.html

http://yuanzhifei89.iteye.com/blog/1123870

猜你在找的Sqlite相关文章