HOW TO ADD PRIMARY KEY TO TABLE BY PL/SQL PROGRAM
Answers were Sorted based on User's Feedback
Answer / prativa mishra
begin
execute immediate('alter table table_name add constraint constraint_name primary key(column_name)');
end;
Is This Answer Correct ? | 13 Yes | 0 No |
Answer / prativa mishra
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE TABLE_NAME ADD CONSTRAINT PK1
PRIMARY KEY(COLUMN_NAME)';
END;
Is This Answer Correct ? | 2 Yes | 0 No |
What do you mean by stored procedures? How do we use it?
How did you export data from database to excel file.
What is normalization? How many normalization forms are there?
what are %TYPE and %ROWTYPE? what is the difference?
7 Answers ICICI, Saama Tech, Sail,
Is record in oracle pl sql?
How many types of primary keys are there?
What is a sql trace file?
Why use truncate instead of delete?
what is the difference between delete and truncate commands? : Sql dba
Which is better stored procedure or query?
What is difference between Procedures and Functions ?
How many types of indexes are there in sql?