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
发布时间: 2012-03-09 16:54:57 作者: rapoo
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