语句要
sql="select * from table2 where id=2"
这样才能得到结果,
而我的语句是
sql="select * from table2 where id='"+str1+"'"
而这个第二句实际上是
sql="select * from table2 where id='2'",我怎么才得到一句呢,str1是string。