1
내 iPhone 앱에서 sqlite 데이터베이스의 일부 항목을 삭제하려고하는데 이상한 오류가 발생합니다. ... 왜이 (가) "공부하는"는 아닙니다 말하는목표 C에서 Sqlite 오류
didn't delete error: no such column: Studying
PLAYLIST_NAME과 날짜가 내 열입니다 : 여기
내 코드입니다 :if(sqlite3_open([databasePath UTF8String], &yerocDB)==SQLITE_OK)
{
sqlite3_stmt *compiledstatement;
NSString *deleteSql=[NSString stringWithFormat: @"delete from Favorites_Table where playlist_name = Studying and date = 1/1/2012"];
const char *sqlstmt = [deleteSql UTF8String];
if(sqlite3_prepare_v2(yerocDB, sqlstmt, -1, &compiledstatement, NULL)==SQLITE_OK)
{
int result = sqlite3_step(compiledstatement);
if(SQLITE_DONE != result)
NSAssert1(0,@"Error while creating delete statement => %s",sqlite3_errmsg(yerocDB));
}else{
NSLog(@"didn't delete error: %s", sqlite3_errmsg(yerocDB));
}
sqlite3_finalize(compiledstatement);
}
하지만 그때 나는 오류 기둥?