当前位置: 代码迷 >> Sql Server >> SQL语句转换请问
  详细解决方案

SQL语句转换请问

热度:69   发布时间:2016-04-27 20:42:10.0
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] & '* ')
这样试试
  相关解决方案