Re: Help with database schema for e-commerce paint shop
Posted by:
Rick James
Date: December 08, 2010 01:36AM
There are international issues, such as assuming two decimal places for Price.
Just one phone number?
INT(4) -- consider SMALLINT.
Consider UNSIGNED where appropriate.
NULL vs NOT NULL?
If you are keeping credit card numbers, you have serious legal implications if anyone every hacks into your database.
colour_set VARCHAR(45) -- what is that?
colour_id VARCHAR(40) -- ?
paint_colour_id INT(4) -- ?
I can't see the indexes. I'm guessing that the first field in each table is the PRIMARY KEY?
Go for it!
Now let's see the SELECTs.
Subject
Written By
Posted
December 04, 2010 11:25PM
December 06, 2010 02:01PM
December 06, 2010 11:02PM
December 07, 2010 04:32AM
Re: Help with database schema for e-commerce paint shop
December 08, 2010 01:36AM
December 07, 2010 07:08PM
December 07, 2010 11:23PM
December 08, 2010 11:24AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.