This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
String sql="update registration set phoneno=" + phone1 + ","+ "emailid=" + emailid1 + " where name="+name1; System.out.println(sql); stmt=con.prepareStatement(sql); stmt.executeUpdate() stmt.close(); con.close(); ouput of sql-> update registration set phoneno=9860878112,emailid=smita.joshi@gmail.com where name=smita
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'smita.joshi@gmail.com'.
Dany Mendez
Greenhorn
Joined: Nov 04, 2008
Posts: 14
posted
0
Hello smitaj joshi,
I dont't work with that DBMS, I use oracle, so this is a suggestion.
I can see that you do not limit the strings, could that be the problem? Like so, update registration set phoneno=9860878112,emailid='smita.joshi@gmail.com' where name='smita'