【发布时间】:2012-05-30 10:03:54
【问题描述】:
我正在尝试在 Aqua Data Studio 8.0.22 中执行下一个代码:
-- Add a new role for cashier.
declare
roleEntityID "Entity"."EntityID"%type;
begin
select "EntityID_SEQ".NEXTVAL into roleEntityID from dual;
insert into "Entity" ("EntityID") values(roleEntityID);
insert into "Role" ("RoleID", "Name", "DisplayName") values (roleEntityID, 'Cashier', 'Cashier');
end;
但不幸的是,我遇到了一些错误,首先是:
[错误] 脚本行:1-3 -------------------------- ORA-06550:第 3 行,第 41 列:PLS- 00103:遇到符号“文件结束”时 期待以下之一:
:= ( ; 非空范围默认字符 脚本第 3 行,语句 第 3 行,第 41 列
【问题讨论】: