执行数据库语句时,报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处值错误,但是单独执行挂号里面却没有问题,求高手指点
展开
 我来答
tj_angela
2014-07-08 · TA获得超过7530个赞
知道大有可为答主
回答量:6797
采纳率:75%
帮助的人:2588万
展开全部
insert into xg_zhcp_zcfsb
(xh, xn, xq, xmdm, fs, lrr,lrsj) select
这是你写的, 但是你后面select出来的字段大于7个, 自然就报错了
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式