创建代码如下:
CREATE OR REPLACE PROCEDURE TEST_1
AS
BEGIN
INSERT INTO TEST_TJ SELECT NAME FROM STUDENT;
END TEST_1;
在视图中有一个红色的×,大神们能帮忙看看吗?
点红色的x看有没有错误信息。或在sqlplus中执行看一下错误信息。另外,每个表的表结构是什么?
CREATE OR REPLACE PROCEDURE TEST_1
AS
BEGIN
INSERT INTO TEST_TJ SELECT SNAME FROM STUDENT;
END TEST_1;
这是语句,insert那一句是黄色的,然后下面是
PROCEDURE MENHU.TEST_1 编译错误
错误:PL/SQL: ORA-00947: 没有足够的值
行:4
文本:INSERT INTO TEST_TJ SELECT SNAME FROM STUDENT;
错误:PL/SQL: SQL Statement ignored
行:4
文本:INSERT INTO TEST_TJ SELECT SNAME FROM STUDENT;
@whitea: INSERT INTO TEST_TJ(sname) SELECT SNAME FROM STUDENT;试试这个。testtj表后需要指定列
@alvinloong: 谢啦
@whitea: np