'"fangshi"字段,“keyword”关键字
sql="SELECT * FROM 表名 WHERE 字段1 LIKE '%"&time1&"%' and "&fangshi&" LIKE '"&keyword&"%' order by dingdanhao "&paixu&""
我想增加一条判断语句如:字段2=字段3时显示数据
应如果修改代码,请高手指点,谢谢!
參考答案:将语句改成
sql="SELECT * FROM 表名 WHERE 字段1 LIKE '%"&time1&"%' and "&fangshi&" LIKE '"&keyword&"%' and 字段2=字段3 order by dingdanhao "&paixu&""