Chinaunix首页 | 论坛 | 博客
  • 博客访问: 860287
  • 博文数量: 286
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1841
  • 用 户 组: 普通用户
  • 注册时间: 2015-05-09 16:26
文章分类

全部博文(286)

文章存档

2016年(38)

2015年(248)

我的朋友

分类: SQLite/嵌入式数据库

2015-06-28 19:30:04

 help

点击(此处)折叠或打开

  1. sqlite> .help
  2. .backup ?DB? FILE Backup DB (default "main") to FILE
  3. .bail on|off Stop after hitting an error. Default OFF
  4. .clone NEWDB Clone data into NEWDB from the existing database
  5. .databases List names and files of attached databases
  6. .dump ?TABLE? ... Dump the database in an SQL text format
  7.                          If TABLE specified, only dump tables matching
  8.                          LIKE pattern TABLE.
  9. .echo on|off Turn command echo on or off
  10. .eqp on|off Enable or disable automatic EXPLAIN QUERY PLAN
  11. .exit Exit this program
  12. .explain ?on|off? Turn output mode suitable for EXPLAIN on or off.
  13.                          With no args, it turns EXPLAIN on.
  14. .fullschema Show schema and the content of sqlite_stat tables
  15. .headers on|off Turn display of headers on or off
  16. .help Show this message
  17. .import FILE TABLE Import data from FILE into TABLE
  18. .indices ?TABLE? Show names of all indices
  19.                          If TABLE specified, only show indices for tables
  20.                          matching LIKE pattern TABLE.
  21. .load FILE ?ENTRY? Load an extension library
  22. .log FILE|off Turn logging on or off. FILE can be stderr/stdout
  23. .mode MODE ?TABLE? Set output mode where MODE is one of:
  24.                          csv Comma-separated values
  25.                          column Left-aligned columns. (See .width)
  26.                          html HTML <table> code
  27.                          insert SQL insert statements for TABLE
  28.                          line One value per line
  29.                          list Values delimited by .separator string
  30.                          tabs Tab-separated values
  31.                          tcl TCL list elements
  32. .nullvalue STRING Use STRING in place of NULL values
  33. .once FILENAME Output for the next SQL command only to FILENAME
  34. .open ?FILENAME? Close existing database and reopen FILENAME
  35. .output ?FILENAME? Send output to FILENAME or stdout
  36. .print STRING... Print literal STRING
  37. .prompt MAIN CONTINUE Replace the standard prompts
  38. .quit Exit this program
  39. .read FILENAME Execute SQL in FILENAME
  40. .restore ?DB? FILE Restore content of DB (default "main") from FILE
  41. .save FILE Write in-memory database into FILE
  42. .schema ?TABLE? Show the CREATE statements
  43.                          If TABLE specified, only show tables matching
  44.                          LIKE pattern TABLE.
  45. .separator STRING ?NL? Change separator used by output mode and .import
  46.                          NL is the end-of-line mark for CSV
  47. .shell CMD ARGS... Run CMD ARGS... in a system shell
  48. .show Show the current values for various settings
  49. .stats on|off Turn stats on or off
  50. .system CMD ARGS... Run CMD ARGS... in a system shell
  51. .tables ?TABLE? List names of tables
  52.                          If TABLE specified, only list tables matching
  53.                          LIKE pattern TABLE.
  54. .timeout MS Try opening locked tables for MS milliseconds
  55. .timer on|off Turn SQL timer on or off
  56. .trace FILE|off Output each SQL statement as it is run
  57. .vfsname ?AUX? Print the name of the VFS stack
  58. .width NUM1 NUM2 ... Set column widths for "column" mode
  59.                          Negative values right-justify
  60. sqlite>
阅读(1239) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~