SHARE
TWEET

Untitled

a guest Jan 24th, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MySqlConnection con = new MySqlConnection("Server = adres_serwera; port = 3306; database = nazwa_bazy; UID = login; password = hasło; CharSet = utf8");
  2. con.Open();
  3.  
  4. string str = "DELETE FROM szefowie_ochrony WHERE ID = '" + textBox1.Text + "'";
  5.  
  6. MySqlCommand cmd = new MySqlCommand(str, con);
  7. cmd.ExecuteNonQuery();
  8. con.Close()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top