J
J
JackShcherbakov2018-03-15 00:51:29
SQL
JackShcherbakov, 2018-03-15 00:51:29

Can a table have multiple primary keys?

Hello colleagues!
Recently I read somewhere that there can be only one primary key. This is true?
Many thanks in advance to everyone who helps

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Skibin, 2018-03-15
@megafax

There can only be one primary key.
BUT
Primary key can be on multiple fields. It can sometimes be misleading that there are more than one, but that's not the case. He is always alone.

D
Denis, 2018-03-15
@sidni

But if you want, you can make the primary key composite

K
Konstantin Tsvetkov, 2018-03-15
@tsklab

there can be only one primary key. This is true?
The other will no longer be the first, only the second, and so on.

A
asd111, 2018-03-15
@asd111

There is only one primary key. There can be many indexes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question