sqlite - No Such Column while compiling DELETE FROM table -


i getting error "no such column while compiling delete table". please help

public string getdata() {       string[] columns = new string []{key_rowid, key_header, key_quote_value};       cursor c = ourdatabase.query(database_table, columns, null, null, null, null, null);     string result = "";      int irow = c.getcolumnindex(key_rowid);     int iheader = c.getcolumnindex(key_header);     int iquote_value = c.getcolumnindex(key_quote_value);      (c.movetofirst(); !c.isafterlast(); c.movetonext()){         result = result + c.getstring(irow)+ "@" +c.getstring(iheader)+ ":" +c.getstring(iquote_value)+ ":";     }      return result;  }  public void deleteentry(string deldata1) throws sqlexception {         ourdatabase.delete(database_table, key_header + "=" + deldata1 , null);  } 

}

please me

the deldata1 variable not initialized quoted string.

print value of key_header , deldata1 in deleteentry function before delete call.

atleast 1 should name of table in database. other can table name or quoted string.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -