Baba Bizlowsky wrote:
I can't understand what is wrong in here...
I have a simple table: PERSON [ID (integer), NAME (string), SURNAME (string)]
result of that is:
What comma? I KNOW this is something trivial and I'm probably missing it due to it being 3am, but it is driving me nuts.. help, please?
you should be using PreparedStatement#executeUpdate() for INSERT/UPDATE/DELETE queries.
How do you "print out" on the screen the contents of the Prepared Statement?
Thanks in advance. Cheers!
Wrap PreparedStatement with an own implementation which decorates the original PreparedStatement and let the setter methods write to some buffer. There are libraries out for this such as p6spy.