Respondo por si a algun otro le paso lo mismo, se q es viejo el post
en donde escribes
Cita: try
{
stmt=dbconn.createStatement();
String sql;
sql="delete * from cliente where rut =" + jTextField1.getText();
stmt.executeUpdate(sql);
}
catch(Exception e){}
}
deberia ser:
try
{
stmt=dbconn.createStatement();
String sql;
sql="delete from cliente where rut =" + jTextField1.getText()
+";";
stmt.executeUpdate(sql);
}
catch(Exception e){}
}
es decir la sentencia correcta:
delete from cliente where rut =" + jTextField1.getText()+";"
Al final +";"
y entre el delete y el from no pongas el *
Saludos