当前位置:数据库 > 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
 
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,