如何更新? update yourtable set code=case code when 1 then '美国' when 2 then '中国' when 3 then '法国' end 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select case when code=1 then '美国' when code=2 then '中国' when code=3 then '法国' end from 表 update yourtable set code=case code when 1 then '美国' when 2 then '中国' when 3 then '法国' end或者拥游标,这就要看具体情况了 SQL数据库查询问题!! 如将将小数点后的0去掉,怎样写这个语句? 奇怪的 SQL Server 不存在或访问被拒绝,很急, 谢谢 求一个SQL语句,谢谢了! 怎么取消sql四舍五入 在SQL SERVER的差异备份中如何动态定义备份文件名? 打sp4时程序一直卡在"安装程序正在准备复制文件.." 统计数据 sql 2000 查询列 论坛帖子在什么地方看呀 怎样在查询时去掉多余的数据? 关于insert语句的返回值
when code=1 then '美国'
when code=2 then '中国'
when code=3 then '法国'
end
from 表
set code=case code
when 1 then '美国'
when 2 then '中国'
when 3 then '法国'
end
或者拥游标,这就要看具体情况了