
September 17th, 2012, 07:55 AM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 6
Time spent in forums: 1 h 28 m 40 sec
Reputation Power: 0
|
|
Code:
[date] => 16/09/2012
[time] => 15:30:46
Are these actually just one timestamp? As already mentioned, you could use DATETIME. There is also the TIMESTAMP column type which allows for a default value of NOW() or CURRENT_TIMESTAMP(). If not related, then you can use the DATE and TIME data types instead.
Code:
[anumber] => 1109907096175000
[bnumber] => VOIP
These both look like they should be stored as text, i.e. VARCHAR(n) where n = the largest possible number of characters. This is especially true if the numbers might contain leading zeros.
Is this a foreign key of some kind to a related table? If so, it should be the same data type as in the referred table, probably some kind of integer.
Code:
[dialled]=> 440906001002
Again, VARCHAR() here;
Code:
[destination] => 323
Same as [origin];
Will there ever be a fractional value? If not, use INTEGER. Otherwise, either DECIMAL (or DOUBLE if rounding errors don't really matter);
Anytime you are dealing with monetary values, use the DECIMAL type.
|