I am little new to Oracle Environment. I have a following script that creates table with few columns in it.
CREATE TABLE CLASS_STUDENT_LECTURES_MAP(
STUDENT_LECTURES_ID NUMBER(38,0) NOT NULL,
STUDENT_CODE NUMBER(38,0) NOT NULL,
STUDENT_NAME_DEFINATION_ID NUMBER(38,0) NOT NULL,
CONSTRAINT STUDENT_LECTURES_ID _PK PRIMARY KEY (STUDENT_LECTURES_ID)
);
What i want is to make the Primary Key column STUDENT_LECTURES_ID an auto incrementing column, can this be possible through sql script above?
Like in SQL Server you can specify IDENTITY(1,1) to make a column auto-increment. Any such option for oracle?