Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void clearTable(String table)
- {
- String connString = "Server=localhost;Database=test;Uid=test;password=test;";
- MySqlConnection conn = new MySqlConnection(connString);
- MySqlCommand command = conn.CreateCommand();
- command.CommandText = "Delete FROM "+table;
- try
- {
- conn.Open();
- }
- catch (Exception ex)
- {
- Console.WriteLine(ex.Message);
- }
- MySqlDataReader reader = command.ExecuteReader();
- }
Add Comment
Please, Sign In to add comment