Here is the code to create a sample table jobs:
CREATE TABLE jobs (
JOB_ID integer NOT NULL UNIQUE ,
JOB_TITLE varchar(35) NOT NULL,
MIN_SALARY decimal(6,0)
);
Now insert a row into the table jobs :
INSERT INTO jobs VALUES(1001,'OFFICER',8000);
Here is the command to see the list of inserting rows :
Now insert a row into the table jobs :
Here is the command to see the list of inserting rows :
Now, try to insert the duplicate value in the key column and see what happen :
need an explanation for this answer? contact us directly to get an explanation for this answer