I've created a table named 'student' as :
create table student(stud_id number primary key, stud_name varchar2(30) not null,
branch- id varchar2(4) references branch(branch_id),course_id number references
course(course_id),hostel varchar2(4));
Later on, I found that I don't need course_id column, now I want to remove that column, when I tried to do that, a warning message appeared saying : 'cannot drop column from the table owned by SYS' then I thought, I must remove foreign key constraint first and then drop table, but that didn't work. I used :
alter table student drop column course_id;
and since I didn't name my constraint, therefore can't use the following statement :
alter table student drop constraint ;
I am using oracle database 11g