Insert statement with variables
Posted by: kkastner
Date: October 06, 2004 04:59PM

Hi guys

I have a problem...............
I established a database connection and that works well. The only problem is to execute the INSERT statement. Here you can see my code:

stat.executeUpdate("INSERT INTO users(email, username, password, role)VALUES('"email+"','"+username"',"+password+",'"+role"); );

password is a MessageDigest(MD5) which should be saved in a MySQL-field (BLOB).

Perhaps or hopefully you can show me the error, because I don't know how to go on.

Thanks a lot


Options: ReplyQuote

Written By
Insert statement with variables
October 06, 2004 04:59PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.