Re: duration of services datatype
The question you should ask yourself is, What sort of operations do I want to perform on this data?
In most cases, when dealing with lengths of time, you'll want to perform arithmetic operations on them. So use a numeric data type. Since duration isn't usually reckoned with negative values, I'd suggest you use SMALLINT UNSIGNED. See
http://dev.mysql.com/doc/refman/5.6/en/integer-types.html for the integer types supported in MySQL.
cheers,
Jon Stephens
MySQL Documentation Team @ Oracle
MySQL Dev Zone
MySQL Server Documentation
Oracle
Subject
Written By
Posted
Re: duration of services datatype
May 26, 2015 01:15AM
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.