const char *sql_create_table="create table mydata (From integer, To integer, Data integer, Message text, IMEI integer, IMSI integer, PhoneNumber integer);";
ret = sqlite3_exec(db,sql_create_table,NULL,NULL,&errmsg);
if(ret != SQLITE_OK)
{
printf("errmsg: %s\n",errmsg);
//return -1;
}
FROM是sql关键字,不能做字段名吧
恩,太谢谢了,原来如此,我之前想到这就改成小写的了,没想到大小写一样。谢谢了