我執行一個PL/SQL程序,但我得到的錯誤PLS-00201:必須聲明錯誤PLS-00201:標識符kurtwb必須聲明
DECLARE
create_user dba_users%ROWTYPE;
model_id varchar2(20);
user_name varchar2(20);
BEGIN
model_id:=&model_id;
user_name:=&user_name;
Select * INTO create_user from dba_users where username=model_id;
EXECUTE IMMEDIATE 'create user user_name identified by password
user_name default tablespace create_user.default_tablespace
temporary tablespace create_user.temporary_tablespace profile
create_user.profile;';
END;
/
標識符下面「KURTWB」是輸入的值由我
Enter value for model_id: kurtwb
old 6: model_id:=&model_id;
new 6: model_id:=kurtwb;
Enter value for user_name: rohit
old 7: user_name:=&user_name;
new 7: user_name:=rohit;
下面是我得到
ERROR at line 6:
ORA-06550: line 6, column 11:
PLS-00201: identifier 'KURTWB' must be declared
ORA-06550: line 6, column 1:
PL/SQL: Statement ignored
ORA-06550: line 7, column 12:
PLS-00201: identifier 'ROHIT' must be declared
ORA-06550: line 7, column 1:
PL/SQL: Statement ignored
什麼是你的問題? – yanman1234