当前位置: 代码迷 >> Sql Server >> 一条小语句 大得分,该如何处理
  详细解决方案

一条小语句 大得分,该如何处理

热度:90   发布时间:2016-04-27 20:40:18.0
一条小语句 大得分

with   msflex  
strsql   =   "select   count(distinct   mdan)   as   a   from   cs_manager "
              Set   rct   =   ExecuteSql(strsql)
            .Text   =   rct!a
end   with

用行后   语句显示  

操作符丢失在     count(distinct   mdan)   中   可在查询分析器中运行正常怎么回师~~~

大哥帮我~~


------解决方案--------------------
這麼寫

ACCESS中不支持count(distinct )

select count(mdan) as a from (select distinct mdan from cs_manager) a
  相关解决方案