On 16 Jun 2012, at 3:01am, sohu <[email protected]> wrote: > I have a sql file, and I know in sqlite use .read my.sql to run sql cmd,but I > don't know how to run the sql file in c++?
There is no way to do it in one command. You can write your own C++ code to read the text file one line at a time and call sqlite3_exec() for that line. There is an example of a C++ program which calls that function here: <http://www.sqlite.org/quickstart.html> Simon. _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

