NYCPHP Meetup

NYPHP.org

[nycphp-talk] MySQL Syntax questions

Steve Manes smanes at magpie.com
Wed May 28 22:19:04 EDT 2008


Kristina Anderson wrote:
> Tim, with regard to the second query, I wanted the entire row not just 
> the ID...do I need to do two queries to get that?

Or a subquery:

SELECT
    *
FROM
    table_foo
WHERE
    id = (SELECT MAX(id) FROM table_foo);




More information about the talk mailing list