Sql 查询 替换问题.用replace解决不了. select replace(I_AutoRunMonitor,'0','不自动运行') from T_Interface这样是可以 0 替换为 '不自动运行'可是我还要用 1 替换为 '自动运行' 2 替换为 '以后设置' 这个怎么写呢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select case I_AutoRunMonitor when 0 then '不自动运行' when 1 then '自动运行' when 2 then '以后设置' endfrom T_Interface select case I_AutoRunMonitor when '0' then '不自动运行' when '1' then '自动运行' when '2' then '以后设置' end from T_Interface select replace(replace(replace(I_AutoRunMonitor,'0','不自动运行'),'1','自动运行'),'2','以后设置') from T_Interface select replace(replace(replace(I_AutoRunMonitor,'0','不自动运行'),'1','自动运行'),'2','以后设置')from T_Interface dobear_0922(do熊) ( ) 信誉:100 2007-09-04 14:09:11 得分: 0 select replace(replace(replace(I_AutoRunMonitor,'0','不自动运行'),'1','自动运行'),'2','以后设置') from T_Interface ----------------------------------------这个Replace好方法,记得在Access中的SQL语句一定要这样写的!! 邹健,向你提问,分段统计的功能,不知要怎么实现呀,多谢你了!!! 设置默认值后,创建sql脚本的问题 动态语句请教 存储过程的解读 请高手出马,想到得某日期到今日已有几个月?能否实现? 在从服务器接收结果时发生传输级错误。 (provider: TCP Provider, error: 0 - 指定的网络名不再可用。) 树表SQL语句,大家帮忙! 世界最奇的疑难杂症 ERWIN连接上了数据库SQL SERVER如何建立表关系?请大家交流!~_~ sql server 2014官网上下载为什么会自己暂停 xp下装sql2000个人版的问题。 sql2005联接sql2000数据库的问题
case I_AutoRunMonitor
when 0 then '不自动运行'
when 1 then '自动运行'
when 2 then '以后设置'
end
from T_Interface
case I_AutoRunMonitor
when '0' then '不自动运行'
when '1' then '自动运行'
when '2' then '以后设置'
end
from T_Interface
from T_Interface
from T_Interface
select replace(replace(replace(I_AutoRunMonitor,'0','不自动运行'),'1','自动运行'),'2','以后设置')
from T_Interface
----------------------------------------这个Replace好方法,记得在Access中的SQL语句一定要这样写的!!