日期:2014-05-16  浏览次数:20877 次

ACCESS中有没有好象SQLSERVER的CASE语句
我想取出两列中较小的那一列的数据,请问谁知道,解答下,谢谢

------解决方案--------------------
select (case when a> b then a else b) as col1 from tab1

--以上是SQL Server写法

在Access中,用:

select iif(a> b,a,b) as col1
from tabl1