Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


HOW TO ADD PRIMARY KEY TO TABLE BY PL/SQL PROGRAM

Answers were Sorted based on User's Feedback



HOW TO ADD PRIMARY KEY TO TABLE BY PL/SQL PROGRAM ..

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

HOW TO ADD PRIMARY KEY TO TABLE BY PL/SQL PROGRAM ..

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

HOW TO ADD PRIMARY KEY TO TABLE BY PL/SQL PROGRAM ..

Answer / saran

alter <tablename> attributename,constriantname

Is This Answer Correct ?    3 Yes 8 No

Post New Answer

More SQL PLSQL Interview Questions

What is difference between stored procedure and trigger?

0 Answers  


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

0 Answers  


How can multiply values of a column? OR How can multiply value of a row of a column using a single query in SQL?

1 Answers   Pitney Bowes,


What is pivot in sql?

0 Answers  


Write a query to find five highest salaries from EMP table. (there is a column SALARY)

24 Answers   Cap Gemini, iNautix,


What are all the ddl commands?

0 Answers  


when is the use of update_statistics command? : Sql dba

0 Answers  


What are Anti joins

1 Answers   IBM,


How many unique keys can a table have?

0 Answers  


Is drop table faster than truncate?

0 Answers  


Explain the uses of a database trigger?

0 Answers  


How to fetch records from a partitioned table?

2 Answers   HSBC,


Categories