fork download
  1. using (SQLiteConnection connection = new SQLiteConnection("Data Source=test.db"))
  2. {
  3. connection.Open();
  4. using (SQLiteTransaction tran = connection.BeginTransaction())
  5. {
  6. using (SQLiteCommand cmd = connection.CreateCommand())
  7. {
  8. cmd.CommandText = "DELETE FROM test_tbl WHERE id=@id";
  9. cmd.Parameters.Add("@id", DbType.UInt32);
  10. cmd.Parameters[0].Value = id;
  11. cmd.Prepare();
  12. cmd.ExecuteNonQuery();
  13. }
  14. tran.Commit();
  15. }
  16. }
  17.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty