主题:两句SQL看似相同但结果不同
第一句正确
sql="select * from 123 where ss= '合适' and tt like '%"&session("dd")&"%' order by id "
改为用第二句的时候就出现以下错误:
sql="select ss as '合适' from 123 where tt like '%"&session("dd")&"%' order by id "
找不到表中的字段,请高手帮忙看一下什么原因
sql="select * from 123 where ss= '合适' and tt like '%"&session("dd")&"%' order by id "
改为用第二句的时候就出现以下错误:
sql="select ss as '合适' from 123 where tt like '%"&session("dd")&"%' order by id "
找不到表中的字段,请高手帮忙看一下什么原因