There are many system.out.println in your program. can you tell us which one is last system.out printed to ccnsole.
and what is the delete query formed by your program.
thanks
Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Azz Romaysa
Ranch Hand
Joined: Dec 08, 2004
Posts: 66
posted
0
This is my Sql Query: String deleteQuery= "DELETE "+ "FROM irn_gebruiker "+ "WHERE gebruikersnaam ='" +deletedGeb+"';";
This is the printed query in my consoll: ===== De gebruikers is succesvol verwijderd: Test 22 DELETE FROM irn_gebruiker WHERE gebruikersnaam ='Test 22';
Test 22 is the selected User which I want to delete. [ January 07, 2005: Message edited by: Azz Romaysa ]
Srinivasa Raghavan
Ranch Hand
Joined: Sep 28, 2004
Posts: 1228
posted
0
Originally posted by Azz Romaysa: This is my Sql Query: String deleteQuery= "DELETE "+ "FROM irn_gebruiker "+ "WHERE gebruikersnaam ='" +deletedGeb+"';";
Is that ";" really needed.
pascal betz
Ranch Hand
Joined: Jun 19, 2001
Posts: 547
posted
0
i think the ; at the end of the statement is only needed in the mysql console but not in JDBC. try without.
pascal
Azz Romaysa
Ranch Hand
Joined: Dec 08, 2004
Posts: 66
posted
0
It stills give the same Exception:
Srinivasa Raghavan
Ranch Hand
Joined: Sep 28, 2004
Posts: 1228
posted
0
Hi Friend,
Do this , write the Delete SQl statement and execute it manually , in a tool like TOAD or SQL console. If it works format the same delete statement in java code , but without ";"
Originally posted by Shailesh Chandra: thanks srini....
I had sent you a personal messsage about me, by the way I am from Delhi
Shailesh
[ January 07, 2005: Message edited by: Shailesh Chandra ]
Shailesh Do you remember couple of days back i also made a silly, bloody ( sorry for using this word ) mistake , you found that out !! This happens ... We have to correct it.