I am tring to delete one table's all record using C#.
SQLiteConnection sql_con = new SQLiteConnection("Data Source=test.db3;Version=3;New=false;Compress=true;");
SQLiteCommand sql_cmd;
sql_con.Open();
sql_cmd = sql_con.CreateCommand();
sql_cmd.CommandText = "delete from table1";
sql_cmd.ExecuteNonQuery();
sql_con.Close();
It works when there are rows existing in table1. However if there is no rows in table1, the code will break at sql_cmd.ExecuteNonQuery(); What do I miss?