1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| public void delete() {
try
{
String url = "jdbc:odbc:thin@localhost:1521:XE";
Connection connexion = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE [why on WHY,"why","why");
Statement instruction = (Statement) connexion.createStatement();
instruction = null;
ResultSet rs = null;
String e=jTextField31.getText();
String SQL = "delete id from PRODUIT where id='"+e+ "' ;'";
instruction = (Statement) connexion.createStatement();
instruction.executeQuery(SQL);
}catch(Exception e){}
} |
Partager