MySQL Forums
Forum List  »  Newbie

Re: scanning for data gaps in time series
Posted by: Peter Brawley
Date: July 16, 2011 03:30AM

Quote

> uses a sequential ID field. Since I don't have a unique ID field
Then make one.
CREATE TABLE t
( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ) -- Extra field being generated, plus index
SELECT start_time
FROM JobTimes
ORDER BY start_time; -- They need to be in order

Eh? Jobtimes has a sequential ID, just not declared.

PB



Edited 1 time(s). Last edit at 07/16/2011 03:31AM by Peter Brawley.

Options: ReplyQuote




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.