我想差做一个用户注册登陆用sqlite3 数据库。
sprintf(sql,"select * from user where name='%s' and passwd='%s'",send->name,send->passwd);
res = sqlite3_exec(db, sql, NULL, NULL, NULL);
怎么判断返回值是否为空。。
res = sqlite3_get_table(db, sql_select, &Result, &Row, &Col, NULL);
if (res == 0){
for (i=0; i<(Row +1)*Col; i++){
printf("%s\t", Result[i]);
if ((i+1)%Col == 0){
printf("\n");
}
}
}