can not create sqlite table with C API
hello
I am new in sqlite and this is my C code : Code:
#include <stdio.h> what is wrong with it? |
Two things I see off the bat:
1. You should pass a length of "strlen (sqlitequery)+1" <= Don't forget space for the "null" terminator ;) 2. I don't see where you're executing the statement you've prepared (e.g. "sqlite3_step()") Q: Have you considered substituting "sqlite3_exec()"? Q: What was the sample output? Any errors or warnings? Here's a nice, short tutorial: http://www.yolinux.com/TUTORIALS/SQLite.html |
Quote:
Quote:
|
All times are GMT -5. The time now is 06:20 AM. |