当前位置:数据库 > SQLServer >>

Pl sql case语句应用实例


Pl sql case语句应用实例
 
Select  UserName,FileUpTime,RecordState,
 
case RecordState 
 
   when 0 then  '待审核'
 
   when 1 then '通过'
 
 end as stateName
 
 from tbSLUpLoadRecord
 
 where RECORDSTATE=0 or RecordState=1
 
Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,