sqlite3命令详解(中)

来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 04:40 点击:

 

文章参照:www.sqlite.org/sqlite.html

在sqlite3中我们可以通过".help"命令来查所有的非SQL命令。

比如,示例4:

sqlite> .help

.help

.backup ?DB? FILE      Backup DB (default "main") to FILE

.bail ON|OFF               Stop after hitting an error.  Default OFF

.databases                  List names and files of attached databases

.dump ?TABLE? ...      Dump the database in an SQL text format

                                   If TABLE specified, only dump tables matching

                                   LIKE pattern TABLE.

.echo ON|OFF            Turn command echo on or off

.exit                             Exit this program

.explain ?ON|OFF?      Turn output mode suitable for EXPLAIN on or off.

                                    With no args, it turns EXPLAIN on.

.genfkey ?OPTIONS?     Options are:

                                      --no-drop: Do not drop old fkey triggers.

                                      --ignore-errors: Ignore tables with fkey errors

                                     --exec: Execute generated SQL immediately

                                         See file tool/genfkey.README in the source

                                          distribution for further information.

.header(s) ON|OFF      Turn display of headers on or off

.help                               Show this message

.import FILE TABLE     Import data from FILE into TABLE

.indices ?TABLE?        Show names of all indices

                                     If TABLE specified, only sh

    发表评论
    请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
    用户名: 验证码:点击我更换图片
    最新评论 更多>>

    推荐热点

    • Request.ServerVariables 参数大全
    • 执行全文索引时出现权限不足的解决方法
    • 导入excel文件处理流程节点的解决方案
    • 查看sql修改痕迹(SQL Change Tracking on Table)
    • App数据层设计及云存储使用指南
    • PostgreSQL启动过程中的那些事三:加载GUC参数
    • MongoDB安装为Windows服务方法与注意事项
    • Percolator与分布式事务思考(二)
    • 写给MongoDB开发者的50条建议Tip1
    网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
    Copyright © 2008-2015 计算机技术学习交流网. 版权所有

    豫ICP备11007008号-1