select t1.havead
havead
只有两个值 一个是 1 一个是 0
如果是1 代表有 如果是0 代表无 如何让select t1.havead选出的值(1和0)分别显示成 “有” 和 “无” 呀?偶在前台绑定的的字段还是havead 显示结果为 “有” 或 “无”
havead
只有两个值 一个是 1 一个是 0
如果是1 代表有 如果是0 代表无 如何让select t1.havead选出的值(1和0)分别显示成 “有” 和 “无” 呀?偶在前台绑定的的字段还是havead 显示结果为 “有” 或 “无”
解决方案 »
- 请问嵌套from语句的存储过程写法
- 数据库 'dbname' 的事务日志已满。若要查明无法重用日志中的空间的原因
- 存储过程中发生错误继续执行
- SQL SERVER数据导出到ACCESS出现无法初始化链接服务器错误
- update 表时,更新字段为参数 参数,为什么不行呀?高人指教
- 请教:存储过程调用程序集中的odbcpermission如何设置
- 我在SQL数据库中用户无法使用
- 关于不同机器间数据库的访问问题...
- 请大伙帮忙看看如何设计下列数据库?不是最难的,但做好不是容易的?分不够再加!
- sql2000 联合查询多条件
- 奇怪问题。我搬家后。把电脑打开,发现Sql server 2000不能用了
- 如何在SQL Server里跟踪一个表的操作(十分紧急!!高分求救!!)
tfm.DeptCode,
tfm.FolderID,
tfm.FileCode,
tfm.[FileName],
tfm.HaveAD case when 1 then '有' case 0 then '无' end,
tfm.SaveUser服务器: 消息 156,级别 15,状态 1,过程 OA_GetFileList,行 10
在关键字 'case' 附近有语法错误。
insert into @t select 0
insert into @t select 1
insert into @t select 1
insert into @t select 0
insert into @t select 1
insert into @t select 0select havead=case havead when 1 then '有' else '无' end from @t
HaveAD=case tfm.HaveAD when 1 then '有' else '无' end,
tfm.DeptCode,
tfm.FolderID,
tfm.FileCode,
tfm.[FileName],
--tfm.HaveAD=(case HaveAD when '1' then '有' else '无' ),
--havead=case havead when 1 then '有' else '无' end
tfm.HaveAD=case tfm.HaveAd when '1' then '有' else '无' end,
tfm.SaveUser服务器: 消息 170,级别 15,状态 1,过程 OA_GetFileList,行 12
第 12 行: '=' 附近有语法错误。
tfm.DeptCode,
tfm.FolderID,
tfm.FileCode,
tfm.[FileName],
HaveAD=case tfm.HaveAd when '1' then '有' else '无' end,
tfm.SaveUser