[英]Should I add this new column to customers table or to a separate new table?
[英]should I add new table to store new field in zencart db?
我應該添加新表以將新字段存儲在zencart數據庫中嗎? zencart原裝桌子
table : customers
customers_id | ...
1 | ...
2 | ...
現在我需要為客戶添加一個新字段,我創建一個新表
table : customers_extra
customers_id | is_blogger
1 | 0
2 | 1
或直接在客戶表中創建
table: customers
customers_id | ... | is_blogger
1 | ... | 0
2 | ... | 1
我應該使用哪種方法? 將添加新表值得嗎? 會降低查詢速度嗎?
我只是將其添加到“客戶”表中。 這樣可以減少很多工作。 不,從這樣向表中添加一個字符字段不會使您變慢。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.