SQLite Forum

sqlite3_exec
Login
If you insist on combining SQL statements into a single string:<br>
Look carefully at the sqlite3_prepare() family of APIs, in particular at the pzTail parameter and its effect.

Otherwise, put your SQL statements into separate strings.