MySQL Forums
Forum List  »  General

Re: using jsp to update
Posted by: Felix Geerinckx
Date: May 11, 2005 04:58AM

andrew waller wrote:

> the sql statement is
> "update student set (UserName = ?, Password = ?, fname = ?, lname = ?, address =?, phone = ?)
> where UserName = '" + username + "'";

Get rid of the parentheses in your update.
Why aren't you using a placeholder in the where clause?

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
May 11, 2005 04:53AM
Re: using jsp to update
May 11, 2005 04:58AM
May 11, 2005 05:50AM
May 11, 2005 08:46AM
May 11, 2005 09:48AM


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.