posted 15 years ago
Hi all,
I have a table a1 in MYSQL. Its columns are "identity"(type int) and "name"(type varchar).
I am having two entries in table a1 whose "name" column has value = abc.
I am trying to set the value of the "name" column of these two entries using batch update.
Here's the code fragment:
But when i run this program, i am getting the following message:
expecting DOT, found '=' near line 1, column 19 [Update a1 set name=? where name=?]
Could anybody kindly tell me where i went wrong and what i should do to rectify the error?
Thanks,
Subhash