Sql 三元运算符

SELECT CASE WHEN a.RealBookPrice>THEN a.RealBookPrice else a.BookPrice end
 
 
select case when 1<then 'yes' else 'no' END
原文地址:https://www.cnblogs.com/jiayue360/p/3166885.html