执行数据库语句时,报oracle 中ORA-00913:值过多 的错误 10
insertintoxg_zhcp_zcfsb(xh,xn,xq,xmdm,fs,lrr,lrsj)selecta.xh,a.xh2,a.xh3,(selectxmdmf...
insert into xg_zhcp_zcfsb
(xh, xn, xq, xmdm, fs, lrr,lrsj) select a.xh,a.xh2, a.xh3, (select xmdm from xg_zhcp_zcxmb t1
where t1.xn || t1.xq = a.xh2 || a.xh3 and xmmc = '能力素质测评') as xmdm,
a.xh4, 'zf01', '2014-07-08 11:50:16' from temp004 a
where (xh, xh2, xh3) not in (select *
from (select a.xh,
a.xh2,
a.xh3,
(select xmdm
from xg_zhcp_zcxmb t1
where t1.xn || t1.xq = a.xh2 || a.xh3
and xmmc = '能力素质测评') as xmdm,
a.xh4,
'zf01',
'2014-07-08 11:50:16'
from temp004 a)
where (xh, xh2, xh3) in
(select xh, xh2, xh3
from (select a.xh,
a.xh2,
a.xh3,
(select xmdm
from xg_zhcp_zcxmb t1
where t1.xn || t1.xq = a.xh2 || a.xh3
and xmmc = '能力素质测评') as xmdm,
a.xh4,
'zf01',
'2014-07-08 11:50:16'
from temp004 a)
group by (xh, xh2, xh3)
having count(*) > 1))
执行时一直报 where in 后面挂号select处值错误,但是单独执行挂号里面却没有问题,求高手指点 展开
(xh, xn, xq, xmdm, fs, lrr,lrsj) select a.xh,a.xh2, a.xh3, (select xmdm from xg_zhcp_zcxmb t1
where t1.xn || t1.xq = a.xh2 || a.xh3 and xmmc = '能力素质测评') as xmdm,
a.xh4, 'zf01', '2014-07-08 11:50:16' from temp004 a
where (xh, xh2, xh3) not in (select *
from (select a.xh,
a.xh2,
a.xh3,
(select xmdm
from xg_zhcp_zcxmb t1
where t1.xn || t1.xq = a.xh2 || a.xh3
and xmmc = '能力素质测评') as xmdm,
a.xh4,
'zf01',
'2014-07-08 11:50:16'
from temp004 a)
where (xh, xh2, xh3) in
(select xh, xh2, xh3
from (select a.xh,
a.xh2,
a.xh3,
(select xmdm
from xg_zhcp_zcxmb t1
where t1.xn || t1.xq = a.xh2 || a.xh3
and xmmc = '能力素质测评') as xmdm,
a.xh4,
'zf01',
'2014-07-08 11:50:16'
from temp004 a)
group by (xh, xh2, xh3)
having count(*) > 1))
执行时一直报 where in 后面挂号select处值错误,但是单独执行挂号里面却没有问题,求高手指点 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询