Re: Insert using connector j?
Posted by: Branden Patey
Date: July 08, 2014 02:35PM

I'm getting another error relating to the SQL syntax, it claims that this is wrong:

(ID,email,password,name,call,phone_number) VALUES ('"+ user[0] +"','"+ user[1] +"','"+ user[2] +"','"+ user[3] +"','"+ user[4] +"','"+ user[5] +"')");

but the same code works like this:

(ID,email,password,name) VALUES ('"+ user[0] +"','"+ user[1] +"','"+ user[2] +"','"+ user[3] +"')");

it's no different other than I added 2 more vaues in the exact same way :S
also,System.out.println(user[0]+user[1]+user[2]+user[3]+user[4]+user[5]);
results in
77 test.test.com a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 testname yes 7095555555
as it should

Options: ReplyQuote


Subject
Written By
Posted
Re: Insert using connector j?
July 08, 2014 02:35PM


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.