How many maximum number of columns can be part of Primary Key in a table in Oracle 9i and 10g?

Showing Answers 1 - 30 of 30 Answers

ninad shah

  • Jun 29th, 2007
 

You  can set primary key on table upto 16 columns of table in oracle 9i and 10g

  Was this answer useful?  Yes

Upto 33 columns can be added as part of primary key on 9i

Below create statement can be run successfully on 9i

create table t3(n1 number,n2 number,n3 number,n4 number,n5 number,n6 number,n7 number,n8 number,n9 number,n10 number,n11 number,n12 number,n13 number,n14 number,n15 number,n16 number,n17 number,n18 number,n19 number,n20 number,n21 number,n22 number,n23 number,n24 number,n25 number,n26 number,n27 number,n28 number,n29 number,n30 number,n31 number,n32 number,n33 number,n34 number,n35 number,
constraint pk3 primary key (n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,n14,n15,n16,n17,n18,n19,n20,n21,n22,n23,n24,n25,n26,n27,n28,n29,n30,n31,n32,n33));

  Was this answer useful?  Yes

venkat

  • Aug 26th, 2011
 

The maximum number of columns can be part of Primary Key in a table in Oracle 9i and 10g are 32

  Was this answer useful?  Yes

VENKAT

  • Aug 26th, 2011
 

32

  Was this answer useful?  Yes

Sam

  • Jul 25th, 2015
 

Is it possible to make composite primary key more than 32 column?

  Was this answer useful?  Yes

farida

  • Aug 28th, 2015
 

32

  Was this answer useful?  Yes

Manoj Yadav

  • Dec 8th, 2015
 

32

  Was this answer useful?  Yes

Shubham

  • Oct 7th, 2016
 

No,
We can not give more then 32 column primary key

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions