-
Website
http://www.codespatter.com -
Original page
http://codespatter.com/2007/05/04/mysql-fun/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
billymcclure
1 comment · 1 points
-
Ben Bangert
1 comment · 2 points
-
jakubmusil
1 comment · 1 points
-
dobrych
1 comment · 1 points
-
Greg Allard
32 comments · 1 points
-
-
Popular Threads
UPDATE tbd_requests
SET request_taken_time =
(
SELECT history_created
FROM tbd_history
WHERE tbd_history.request_id = tbd_requests.request_id
AND history_action LIKE 'taken'
ORDER BY history_created DESC
LIMIT 0, 1
)
WHERE request_type != 11
ORDER BY request_id ASC
LIMIT 0, 1
and getting this
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1' at line 13
Fate doesn't want to allow me to restructure this database, it wants me to forever have slow queries.
Affected rows: 4176 (Query took 176.0788 sec)