读书人

以次sql句哪有?各位大

发布时间: 2011-12-11 23:19:43 作者: rapoo

以下sql句哪有?各位大忙!急!
句如下:
select * from Product_db.dbo.File_Publish_Tab where Bitem= '文件 ' and Fno= 'EW-101 ' and Fver < 'B ' and FrecY <> 'Y ';
不加and FrecY <> 'Y '正,什麽?

[解决办法]
try


select * from Product_db.dbo.File_Publish_Tab where Bitem= '文件 ' and Fno= 'EW-101 ' and Fver < 'B ' and (FrecY Is Null Or FrecY <> 'Y ')
[解决办法]
select * from Product_db.dbo.File_Publish_Tab where Bitem= '文件 ' and Fno= 'EW-101 ' and Fver < 'B ' and (FrecY <> 'Y ' or FrecY is null)

读书人网 >asp.net

热点推荐