日期:2014-05-19  浏览次数:20410 次

SQL语句转换请教
我是ACCESS的使用,现在正在使用ADP做数据库,因为使用的是SQL的后台,所以想请教一下查询语句的差异!

Like   IIf([forms]![report]![time]   Is   Null, "* ", '* '   &   [forms]![report]![time]   &   '* ')

像这样的查询语句用到SQL应该怎么写呢?SQL不支持IIf   !!还有什么其它要注意的问题吗?

------解决方案--------------------
用 case when then else end
------解决方案--------------------
Like ( case when [forms] Is Null and [report] Is Null and [time] Is Null then '* ' else '* '+[forms]+[report]+[time] & '* ')
这样试试