decode简单用法
来源:互联网 发布:c语言面向过程 编辑:程序博客网 时间:2024/05/21 06:37
select
a.deptcode,
a.deptname,
decode(substr(a.deptcode,0,2),'jx',(select c.schoolname from sch_schoolinfo c where c.schoolcode = a.deptcode),'dw',(select d.deptname from sys_deptinfo d where d.deptcode = a.deptcode)) as name
from sys_userinfo a
a.deptcode,
a.deptname,
decode(substr(a.deptcode,0,2),'jx',(select c.schoolname from sch_schoolinfo c where c.schoolcode = a.deptcode),'dw',(select d.deptname from sys_deptinfo d where d.deptcode = a.deptcode)) as name
from sys_userinfo a
- decode简单用法
- DECODE 用法
- decode用法
- decode用法
- SQL 中 Decode 和 Sign 的简单用法
- SQL 中 Decode 和 Sign 的简单用法
- decode 函数的用法
- decode 函数的用法
- decode 函数用法
- DECODE 的用法
- decode函数的用法
- oracle decode 用法
- decode函数的用法
- Decode 函数的用法
- Oracle decode用法
- decode 函数的用法
- decode 的用法
- decode的用法
- EI英文摘要
- SPOJ694 Distinct Substrings, 后缀数组, 不相同的子串的个数
- 学习GNU Emacs命令速查表(五)
- Android 如何建立你的菜单
- 进程之间<1>
- decode简单用法
- Eclipse:Could not create the view: Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.j
- 20120603命令行下线程调用代码
- [Lubuntu]解决Conky在Lubuntu下的问题(LXDE + OpenBox + PCManFM)
- 利用synchronized实现多线程同步
- c内嵌汇编
- 利用lock实现多线程同步
- SNIFFER帮助理解NAT(WIN2000)
- sniffer帮助理解子网掩码、网关与ARP协议的作用