Answer Posted / 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 |
Post New Answer View All Answers
what is the command used to fetch first 5 characters of the string? : Sql dba
how to return query output in html format? : Sql dba
Why function is used in sql?
what is the different between now() and current_date()? : Sql dba
Advantages and disadvantages of stored procedure?
what is a join? : Sql dba
Where the sql database files are stored?
What are stored procedures used for?
How can we debug in PL/SQL?
What are the different types of database management systems?
What is cursor explain with example?
Can a primary key be a foreign key?
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?
Are dml statements autocommit?
What will you get by the cursor attribute sql%found?