sql语句 where 后的条件语句 冒号后的变参是如何定义的,在SQL2005中怎么总是报错呢? 5
sql语句where后的条件语句冒号后的变参是如何定义的,在SQL2005中怎么总是报错呢?a.dwbh=b.dwbhanda.rq>=:srqanda.rq<=:erq...
sql语句 where 后的条件语句 冒号后的变参是如何定义的,在SQL2005中怎么总是报错呢?
a.dwbh=b.dwbh
and a.rq>=:srq
and a.rq<=:erq
源代码如下:
select b.danwbh,b.dwmch,
sum(a.hsje) as hsje,sum(a.ml) as ml,round(sum(a.ml)/sum(a.hsje)*100,2) as mll
from pf_ckhz a,mchk b
where a.dwbh=b.dwbh
and a.rq>=:srq
and a.rq<=:erq
and b.dwmch like :dw_bh
and a.djbh like 'XS%'
and a.djbh not like 'XSD%'
group by b.danwbh,b.dwmch
having sum(a.hsje)<>0
order by b.danwbh 展开
a.dwbh=b.dwbh
and a.rq>=:srq
and a.rq<=:erq
源代码如下:
select b.danwbh,b.dwmch,
sum(a.hsje) as hsje,sum(a.ml) as ml,round(sum(a.ml)/sum(a.hsje)*100,2) as mll
from pf_ckhz a,mchk b
where a.dwbh=b.dwbh
and a.rq>=:srq
and a.rq<=:erq
and b.dwmch like :dw_bh
and a.djbh like 'XS%'
and a.djbh not like 'XSD%'
group by b.danwbh,b.dwmch
having sum(a.hsje)<>0
order by b.danwbh 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询