Simon Slavin <[email protected]> wrote:
> 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.

Well, for a reasonably sized file, you could just read the whole thing into 
memory, and call sqlite3_exec on it. sqlite3_exec can run multiple statements 
at once.
-- 
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to