使用SQL Server 2005如何筛选列?
我要过滤的列,其中列值不等于数字
表1
Status
010203
Absent
231415
Ramesh
Suresh
...,
我想从状态栏只得到名称,如
试过查询
Select Status from table1 where status <> 'absent' and status <> numecivalue
如何提到的状态<> numericvalue
期望输出
Table
Status
Ramesh
Suresh
...,
需要查询的帮助。
如果您发布的代码,无论是T-SQL或什么的,请使用编辑器工具栏按钮的代码(010 101),以它们格式化为代码,使他们很好的可读性,将得到语法突出! – 2009-10-29 06:01:51