当前位置: 代码迷 >> Sql Server >> 为什么编辑通过,运行确是异常呢
  详细解决方案

为什么编辑通过,运行确是异常呢

热度:102   发布时间:2016-04-27 15:22:58.0
为什么编辑通过,运行确是错误呢?
select   *   from  
(
select   *   from   agencyinfo_tbl
union   all  
select   *   from   agencyinfo_tbl_wk
)tmp
where
syain_no= 'bc05 '
group   by
                    dairisyuryo_date,dairikaisi_date,dairi_kubun,kenmu_no
having   count(*)=1

------解决方案--------------------
select dairisyuryo_date,dairikaisi_date,dairi_kubun,kenmu_no
from
(
select * from agencyinfo_tbl
union all
select * from agencyinfo_tbl_wk
)tmp
where
syain_no= 'bc05 '
group by
dairisyuryo_date,dairikaisi_date,dairi_kubun,kenmu_no
having count(*)=1

试试这样
------解决方案--------------------
报什么错误呢?
  相关解决方案