CASE when Null 问题

Lion_wen666 2008-03-29 11:19:30
select CASE infotime when Null then '2009-10-10' end from info,结果全都是NUll,请问如何解决
...全文
1465 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
pengxuan 2008-03-29
  • 打赏
  • 举报
回复
select isnull(infotime,'2009-10-10') as infotime from info
wzy_love_sly 2008-03-29
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 liangCK 的回复:]
SQL codeselectisnull(infotime,'2009-10-10') infotimefrominfo
[/Quote]
wzy_love_sly 2008-03-29
  • 打赏
  • 举报
回复
select CASE when infotime is Null then '2009-10-10' else infotime end from info

liangCK 2008-03-29
  • 打赏
  • 举报
回复
select coalesce(infotime,'2009-10-10') infotime from info
liangCK 2008-03-29
  • 打赏
  • 举报
回复
select isnull(infotime,'2009-10-10') infotime from info
liangCK 2008-03-29
  • 打赏
  • 举报
回复
select case when infotime is null then '2009-10-10' end from info

34,837

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧