[英]how to execute dot command of sqlite using C-APIs
I want to execute .dump file on my sqlite DB. 我想在我的sqlite DB上执行.dump文件。 I am using sqlite 3.7.17 version.
我使用的是sqlite 3.7.17版本。 I develop code to create DB and insert data into that DB using c-lang code.
我开发代码来创建数据库并使用c-lang代码将数据插入到该数据库中。 At run time of my code i want to execute .dump file using command ".dump DB.dump" which is not executed through API slite3_exec().
在我的代码运行时,我想使用命令“.dump DB.dump”执行.dump文件,该命令不是通过API slite3_exec()执行的。 Please give me solution ...
请给我解决方案......
Thank you 谢谢
The dot commands are not SQLite statements; 点命令不是SQLite语句; they are special commands implemented by the
sqlite3
command-line tool. 它们是由
sqlite3
命令行工具实现的特殊命令。
Run the sqlite3
tool from your program (execute sqlite3 my.db .dump
), or copy the code from SQLite's shell.c
. 从程序中运行
sqlite3
工具(执行sqlite3 my.db .dump
),或者从SQLite的shell.c
复制代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.