简体   繁体   中英

should I add new table to store new field in zencart db?

should I add new table to store new field in zencart db? zencart original table

table : customers
customers_id | ...
1 | ...
2 | ...

now I need to add a new field for customer I create a new table

table : customers_extra
customers_id | is_blogger
1 | 0
2 | 1

or directly created in the customers table

table: customers
customers_id | ... | is_blogger
1 | ... | 0
2 | ... | 1

which method should I use ? will add new table be worth to do ? will it slow down the query speed?

I would just add it on to the Customers table. It's a lot less work that way. And no, you won't experience a slowdown from adding a one character field to a table like this.

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