一句sql语句,你的bb是变量啊,不能直接包含在查询语句里面,所以java程序员一般都分段来填完这个语句
比如
String sql="select * from table1 where bb='aaa'";
把"select * from table1 where bb='" + "aaa" + "'"
这样明白了吧?
比如
String sql="select * from table1 where bb='aaa'";
把"select * from table1 where bb='" + "aaa" + "'"
这样明白了吧?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货