I have this code in SQL developer:
create table course_table
(
course_id number(5) not null,
course_name varchar2(25) not null,
course_hours number(1) not null,
department varchar2(10) not null,
description varchar2(50) not null,
teacher varchar2(20) not null,
create_dttm DATE,
update_dttm TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
user_created varchar2(20) not null,
user_updated varchar2(20) not null
);
commit;
alter table course_table
add CONSTRAINT course_id_pk PRIMARY KEY (course_id);
ALTER TABLE course_table
**ALTER** COLUMN course_id varchar2(5)
I get an error on the bold word. It says
ORA-00900: invalid SQL statement.
Can someone help me what am I doing wrong?