Hi All,
I m trying to delete a record from a SQLiteDB via Android Application,This is the way that i used the code to delete the record
//Snippet of code in my DBAdapter Class public boolean DeleteRecord(String ContactName) { Log.i(TAG, "DeleteRecord(String ContactName)"); Log.i(TAG, ContactName); return db.delete(TABLE_SIMPLETABLE_CLIENT1,KEY_EMPLOYEE_NAME + "=" +ContactName,null); }
and from the another class, i trying to call this method by opening the DB and calling this method and again closing the DB, this is how i have coded,
//Snippet of code in my DBApplication Class
public void onClick(DialogInterface dialog, int which) { DBAdapter.open(); DBAdapter.DeleteRecord(DeleteRecord); //DeletRecord is string value that in DB(Sivaram) DBAdapter.close(); }
When i deploy it , i an getting the following error,
08-25 14:52:20.602: ERROR/AndroidRuntime(231): android.database.sqlite.SQLiteException: no such column: Sivaram: , while compiling: DELETE FROM SimpleTable1 WHERE Employee_Name=Sivaram
please help me, in finding out the solution
Thanks in advance...