Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sql = "INSERT INTO '" + textBoxNumeTabel.Text + "' SELECT * FROM " +"'" +numeTabel +"';";
- Console.WriteLine(sql);
- command = new SQLiteCommand(sql, AppHelper.getInstance().dbConnection);
- try
- {
- command.ExecuteReader();
- }
- catch (SQLiteException ex)
- {
- MessageBox.Show(ex.Message, "Eroare", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
- sql = "DROP TABLE " +"'" + numeTabel +"';";
- Console.WriteLine(sql);
- command = new SQLiteCommand(sql, AppHelper.getInstance().dbConnection);
- try
- {
- command.ExecuteReader();
- }
- catch (SQLiteException ex)
- {
- MessageBox.Show(ex.Message, "Eroare", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement