简体   繁体   中英

Database design: Year table normalization

i have multiple table which include year column. I need a opinion which method is good ?

First Method: each table has its own year column like this 在此处输入图片说明

Second Method: Create a separate table for year and add a foreign key like this 在此处输入图片说明

In future my database contain millions of record. So tell me which method is consider as a Best Practice ?

最佳做法是“不要用无意义的整数代替有意义的整数”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM