MySQL Forums
Forum List  »  Newbie

Re: UNIX_TIMESTAMP Duplicate key
Posted by: Rick James
Date: January 11, 2010 11:26PM

2050 -- that is a problem. I would argue that if this is sensor data, your program will be long gone long before 2038.

The PRIMARY KEY looks good (at least for this SELECT).

Did you really mean to round your numbers to 2 decimal places?
mysql> create table f298557 (f float, f2 float(7,2));
mysql> insert into f298557 values (12.345678, 12.345678);
mysql> select f, 1000*f, f2, 1000*f2 from f298557;
+---------+-----------------+-------+----------+
| f       | 1000*f          | f2    | 1000*f2  |
+---------+-----------------+-------+----------+
| 12.3457 | 12345.678329468 | 12.35 | 12350.00 |
+---------+-----------------+-------+----------+

Options: ReplyQuote


Subject
Written By
Posted
January 08, 2010 07:48PM
January 10, 2010 03:57PM
January 11, 2010 01:31AM
Re: UNIX_TIMESTAMP Duplicate key
January 11, 2010 11:26PM
January 12, 2010 11:37PM
January 13, 2010 09:32AM
January 13, 2010 09:08PM


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.