oracle在sql语句查询的时候,经常一个字段的不同的值代表不同意思..
就需要多条件下面是一个多条件判断的sql:
select
oper.opid,
oper.user_name,
oper.user_host,
case
when oper.oper_type = 1 then 'System Manager'
when oper.oper_type = 2 then 'USER Manager'
end case,
case
when oper.oper_object_type = 1 then 'User'
when oper.oper_object_type = 2 then 'Role'
when oper.oper_object_type = 3 then 'Broker'
when oper.oper_object_type = 4 then 'QM Manager'
when oper.oper_object_type = 5 then 'User Group'
when oper.oper_object_type = 6 then 'Msg Flow'
when oper.oper_object_type = 7 then 'Queue'
end case
from esb_log_user_oper oper;
分享到:
相关推荐
Oracle Sql语句转换成Mysql Sql语句java 源码,非常简单,只要给定源oracle sql语句地址,和生成目标文件地址运行即可。
Oracle sql语句大全. sql语句的优化资料
oracle Sql语句二 oracle Sql语句二
Oracle 常用 sql 语句 实用性
Oracle SQL语句性能优化
ORACLE SQL 语句(典型应用总结).pdf
Oracle SQL 语句优化53个规则详解
oracle常用SQL语句下载 oracle常用SQL语句下载 oracle常用SQL语句下载
Oracle学习,常用sql语句汇总,适合新手使用。
Oracle中SQL语句执行效率的查找与解决..
oracle、sql语句基础
一些常见的Oracle数据库的sql语句的总结,便于快速的复习Oracle语句。
Oracle——sql语句优化
对ORACLE-SQL进行一些布局优化,更新它的格式
Oracle数据库Sql语句详解大全,详细介绍oracle数据库的sql各种写法,非常适合初学者快速入门使用。
Oracle SQL语句跟踪
很全的oracle sql语句学习资料,从基础开始,逐层深入,让你成为sql高手
oracle sql语句oracle sql语句oracle sql语句oracle sql语句oracle sql语句oracle sql语句oracle sql语句oracle sql语句oracle sql语句oracle sql语句