Possibly, but I can't think how. Is this a problem for you? Have you been told that you're not allowed to use them?
The program Im using to make a MySQL query wont allow them. I have some code below (from exterior help) that might make it easier...
Did you search? Seems an issue after big MyISAM->InnoDB
OK, so I should backup, destroy and remake the table but this time with InnoDB (I plan to use InnoDB)?
Here is the new code:
I had to add a additional field (decimal) to the table called "Time_Stamp_Full" . It takes the Time_Stamp field (datetime) converts it to UNIX_TIME and then the Time_Stamp_ms (int) get added to it.
So the query is this:
SELECT z.*
FROM
(
SELECT a.time_stamp_full, MAX(b.time_stamp_full) AS latest_prev_record
FROM mytable a
INNER JOIN mytable b
ON a.time_stamp_full > b.time_stamp_full
WHERE a.cycle = 1
GROUP BY a.time_stamp_full
) Sub1
INNER JOIN mytable z
ON z.time_stamp_full = Sub1.latest_prev_record
Opinions? The problem is that the query seems to also take forever and last time I ran it, it gave me a lost connection to mysql server during query...