jsp数据库处理中
String sql=“
update buffers set lastSuccess='1' where customMoney=(select currentMoney from clothes where cloId=?) and b.cloId=?
pstmt.setString(1,cloId);
pstmt.setString(2,cloId);
pstmt.executeUpdate();
";
此语句报错,到update()那就通不过了
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to
use near 'lastSuccess='1' where b.customMoney=(select currentMoney from clothes where cloI' at line 1