update语句

lula 2005-08-08 03:55:58
表t_number,字段fone,fonebigsmall,要修改fonebigsmall:当fone<=34时,fonebigsmall='小',当fone>34时,fonebigsmall='大'

能否用一条update语句就实现以上功能?请高手帮写,最好用一条update语句,用两条就无意义了
...全文
76 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
sizheng0320 2005-08-08
  • 打赏
  • 举报
回复
写触发器或者存储过程吧
tangqijun199 2005-08-08
  • 打赏
  • 举报
回复
update t_number set fonebigsmall=case when fone<=34 then '小' else '大' end
tangqijun199 2005-08-08
  • 打赏
  • 举报
回复
update t_number set fonebigsmall=case when fone<=34 then '小' else '大' end
rivery 2005-08-08
  • 打赏
  • 举报
回复
update t_number
set fonebigsmall=case when fone<=34 then '小' else '大' end
vivianfdlpw 2005-08-08
  • 打赏
  • 举报
回复
update t_number
set fonebigsmall=(case when fone<=34 then '小' when fone>34 then '大' end)

34,591

社区成员

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

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