Oracle case when 用法
来源:互联网 发布:网络封包有哪些 编辑:程序博客网 时间:2024/06/05 16:43
SELECT B_BRIDGE."ID",B_BRIDGE.BRIDGENAME,V_BRIDGESTATE.STATE,(case when (V_BRIDGESTATE.SCORE >= 90 and V_BRIDGESTATE.SCORE <= 100) then 'A' when (V_BRIDGESTATE.SCORE >= 80 and V_BRIDGESTATE.SCORE <= 89) then 'B' when (V_BRIDGESTATE.SCORE >= 66 and V_BRIDGESTATE.SCORE <= 79) then 'C' when (V_BRIDGESTATE.SCORE >= 50 and V_BRIDGESTATE.SCORE <= 65) then 'D' when (V_BRIDGESTATE.SCORE < 50) then 'E' end) as SCORE ,(case when (V_BRIDGESTATE.STATE = 'red') then '红色报警' when (V_BRIDGESTATE.STATE = 'green') then '正常' when (V_BRIDGESTATE.STATE = 'yellow') then '黄色报警' end) as red FROM V_BRIDGESTATE
阅读全文
0 0
- oracle case when 用法
- Oracle case when 用法
- Oracle case when用法
- oracle case when 用法
- oracle case when 用法
- oracle case when 用法
- Oracle case when用法
- oracle case when用法
- oracle case when 用法
- oracle case when 用法
- Oracle case when 用法
- ORACLE CASE WHEN 的用法
- oracle case when的用法
- oracle case when的用法
- oracle case when的用法
- Oracle CASE WHEN 用法介绍
- oracle case when的用法
- Oracle CASE WHEN 用法介绍
- TCP的三次握手和四次挥手
- java 导出word
- 斐波那契数列的多种算法,迭代法+递归法+动态规划+矩阵幂
- PopupWindow的使用详解
- 如何理解虚拟DOM?
- Oracle case when 用法
- mvc 页面对日期反json
- Java.sql.SQLException: Io 异常: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12505)
- mybatis应用(二)注解的实现
- MongoCollection::batchInsert批量插入
- Queue 与List、LinkedList与 ArrayList 区别
- xml基本语法---1
- 结构体的嵌套问题--转载
- mysql 批量插入10000条测试数据测试