On this page

Show all

Help Center/ GaussDB(DWS)/ FAQs/ Database Usage/ Do I Need to Set a Distribution Key After Setting a Primary Key?

Do I Need to Set a Distribution Key After Setting a Primary Key?

Updated on 2023-04-26 GMT+08:00

No, you only need to set the primary key. By default, the first column of the primary key is selected as the distribution key. If both are set, the primary key must contain the distribution key.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback