asp搜索多个条件的数据问题
我想让以下两个全二为一,应该怎么写?orders是一个变量!Sql="select*fromxlist"&ordersSql="select*fromxlistwhere...
我想让以下两个全二为一,应该怎么写?orders是一个变量!
Sql = "select * from xlist "&orders
Sql = "select * from xlist where yd = True and nd =False order 展开
Sql = "select * from xlist "&orders
Sql = "select * from xlist where yd = True and nd =False order 展开
展开全部
问题是你的orders里面是什么东东?如果也是where条件,就可以并起来
Sql = "select * from xlist
where yd = True
and nd =False " & "and" & orders;
Sql = "select * from xlist
where yd = True
and nd =False " & "and" & orders;
参考资料: http://arpoon.info
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询