String l="UPDATE counselor SET firstName="qwe" WHERE id=1";
Could anyone tell me what's wrong with above statement,as q sql statement. Netbeans displays as "; expected". I can't understand why it isn't correct at least as a string. Code is as follows.
String l="UPDATE counselor SET firstName="qwe" WHERE id=1";
Statement m=conn.createStatement();
ResultSet v=m.executeQuery(l);