Help Center/
GaussDB(DWS)/
More Documents/
User Guide/
FAQs/
Database Usage/
Do I Need to Set a Distribution Key After Setting a Primary Key?
Updated on 2023-03-08 GMT+08:00
Do I Need to Set a Distribution Key After Setting a Primary Key?
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.
Parent topic: Database Usage
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot