[RESOLU][noob/jdbc] un delete qui cloche
salut
en fait j'aimerait effectuer un simple delecte sur une table voici le code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
ublic void deleteClient(String user,String passwd)
{
try
{
rs=stmt.executeQuery("DELETE login,password from user_connection WHERE login= '"+ user +"'");
}
catch(SQLException e)
{
System.out.println("deleteClient()-->"+e);
}
clientListe();// j'utilise cette fonction pour reafficher la table apres le traitement
} |
j'obtient le joli exception a l'execution :
Code:
1 2
|
deleteClient()-->java.sql.SQLException : ORA-00903: la Commande SQL ne se termine pas correctement |
?
et merci