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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What packages(if any) has oracle provided for use by developers?

5793


How to convert comma separated string to array in pl/sql?

1169


What is memory optimized table?

1037


What are different types of triggers?

1099


How can I tell if sql is running?

1050


Are stored procedures faster than queries?

940


How many triggers can be applied on a table?

928


how to calculate the difference between two dates? : Sql dba

1050


Mention what are the benefits of pl/sql packages?

1069


How many rows can sqlite handle?

1100


what are the disadvantages of mysql? : Sql dba

1139


what's the difference between a primary key and a unique key? : Sql dba

1038


What is a temporal data type?

1039


Is sql similar to python?

965


Can variables be used in sql statements?

1024