I am using Oracle APEX platform, when I run my script code, I got the same error again and again
ORA-00942: table or view does not exist
Kindly help me with find the cause of the error.
create table roles
(
"role_id" number(5,0) not null,
"name" varchar2(20) not null,
constraint "rle_pk" primary key ("role_id")
);
create table users
(
"user_id" number(5,0) not null,
"first_name" varchar2(15) not null,
"last_name" varchar2(15) not null,
"contact_number" number(15,0) not null,
"address" varchar2(30) not null,
"RLE_id" number(5,0) not null,
constraint "usr_pk" primary key ("user_id")
);
alter table "users"
add constraint "usr_rle_fk"
foreign key ("RLE_id") references "roles"("role_id");
CREATE TABLE
statements here, followed by oneALTER
statement. Which statement is generating this error? – Tim BiegeleisenROLES
is a (non reserved) Oracle keyword. You should avoid using it to name your tables. – Tim Biegeleisen