aiaiDBA

加微信获取免费职业规划+学习资料,了解年薪50万的DBA是如何练成的

13718043309

010-86462881

PLS-00396: INSERT statement's subquery yields wrong number of columns

PLS-00396: INSERT statement's subquery yields wrong number of columns
Cause: The number of columns in an INSERT statement does not match the number of columns in a subquery select list. For example, the following statement is faulty because no corresponding column is specified for col3: INSERT INTO emp (ename, empno) SELECT col1, col2, col3 FROM ...
Action: Change the number of items in the column list of the INSERT statement or the number of items in the select list so that the numbers match.

请先 登录 后评论

1 个回答

小智
PLS-00396:INSERT语句的子查询产生错误的列数,
.原因: INSERT语句中的列数与子查询选择列表中的列数不匹配。例如,以下语句有故障,因为没有为col3指定相应的列:INSERT INTO emp(ename,empno)SELECT col1,col2,col3 FROM ...,
.操作:更改INSERT语句列表中项目的数量或选择列表中的项目数,以使数字相匹配。,
.
请先 登录 后评论