select * from tfile where fdate<@fdate
改为
select *,(case when fsort=0 then '普通' when fsort=1 then '机密' when fsort=2 then '绝密' end) as col from tfile where fdate<@fdate
改为
select *,(case when fsort=0 then '普通' when fsort=1 then '机密' when fsort=2 then '绝密' end) as col from tfile where fdate<@fdate
解决方案 »
- SQL 2008R2 安装后,没有开发工具呀 咋回事?
- sql server2005
- 如何从表A(总表)中找出表B(分表)中不存在的记录组合
- 动态SQL语句总被截断!为什么?
- [求助]求一SQL语句
- 请问在一个表中,用什么类型的字段可以存储文件?如何实现?
- Subquery returned more than 1 value. This is , update operator ,update table ...,thanks a lot!
- 把握机会,SQL语句提问,快来啊!
- 数据库改名
- 各位前高手请帮小弟一把!
- 能否删除SQL SERVER 2000的某个数据库的日志文件?怎样做?一定给分!
- help !!!关于使用 select 生成流水号的问题
AS
select *,case fsort
when 0 then '普通'
when 1 then '机密'
when 2 then '绝密'
end as addFieldname
from tfile where fdate<@fdate
set issuccess=@@err
go