What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Why wont this mySQL query wont work?

Why wont this mySQL query wont work?
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Why wont this mySQL query wont work?
SELECT `ID`, `artist`, `title`
FROM `historylist`
WHERE `ID` = SELECT MAX(ID) FROM `historylist`;

Embedded SELECTs rock!

Edit:
quote:
Originally posted by wj
SELECT `ID`, `artist`, `title` FROM `historylist` WHERE  ID IN (SELECT max(ID) FROM `historylist`);
should also work.

This post was edited on 09-14-2005 at 08:28 PM by RaceProUK.
[Image: spartaafk.png]
09-14-2005 08:26 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Why wont this mySQL query wont work? - by Mike on 09-14-2005 at 07:08 PM
RE: Why wont this mySQL query wont work? - by wj on 09-14-2005 at 08:24 PM
RE: Why wont this mySQL query wont work? - by RaceProUK on 09-14-2005 at 08:26 PM
RE: Why wont this mySQL query wont work? - by Mike on 09-15-2005 at 09:18 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On