专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > 高性能数据库开发

sql语句的有关问题,主要是后面的条件

发布时间:2010-05-24 21:18:45 文章来源:www.iduyao.cn 采编人员:星星草
sql语句的问题,主要是后面的条件
select Supplyid,SupplyState, SupplyPrice,SupplierMark from PurchasePrice where 
Operators='LT' and Province='SD'and Par='100' and SupplyState!=-1 and Code ='0531'or code='' order by SupplyPrice asc




帮忙看一下sql语句那地方错了!!我要实现符合前面条件的数据 ,code字段为某个值或位空!!

怎么写到底!!
请教各位大侠!!!

------解决方案--------------------
select Supplyid,SupplyState, SupplyPrice,SupplierMark from PurchasePrice where 
Operators='LT' and Province='SD'and Par='100' and SupplyState!=-1 and ( Code ='0531'or code='' )order by SupplyPrice asc 
需要加个括号就对了

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: