Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please a help in preparedStatement

 
abcddd efghdd
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all!
The first thank you for your attenion!
well,im trying to make a managment application in java using Oracle database but i met a problem

when i click on Add button i want to insert into a "client table" and the sametime i want to insert into "serveur_client_chambre" table
but the problem is when i clicked on it , the second preparedStatement dosen't work ! i meant nothing done in "serveur_client_chambre" table ! i dont know why ...
HERE ARE A ADD BUTTON CODE THAT IM USING

Kamal
 
Tony Docherty
Bartender
Posts: 2952
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
Please UseCodeTags (← click) when posting code as it makes it easier for people to read your code. I've added them for you this time.

Your problem is because you aren't calling executeUpdate() on the second statement.
 
abcddd efghdd
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes! thank you
 
Tony Docherty
Bartender
Posts: 2952
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic