Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Brahma

Former Member
0 Likes
600

What is the maximum Number of primary keys we can hav in a database table ?

4 REPLIES 4
Read only

Former Member
0 Likes
567

16 primary keys

Read only

Former Member
0 Likes
567

Hi,

No limitations on primary key fields. It will be based on field combination in table.

Hope this Info will help you .

Rewards points if Useful.

With Regards,

K K V

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
567

Hi,

There can be only one PRIMARY KEY per table.

You can have upto 16 fields in your primary key.

Regards,

Sesh

Read only

Former Member
0 Likes
567

Hi Brahmaji,

In relational database design, a unique key or primary key is a candidate key to uniquely identify each row in a table. A unique key or primary key comprises a single column or set of columns. No two distinct rows in a table can have the same value (or combination of values) in those columns. Depending on its design, a table may have arbitrarily many unique keys but at most one primary key.