2010-05-15 93 views

回答

2

這樣做:

SELECT id, rank, something 
FROM person 
WHERE date = DATE(NOW()) 
ORDER BY rank DESC LIMIT 1; 
1

嘗試:

SELECT MAX(rank), id 
    FROM mytbl 
WHERE date = mydate 
GROUP BY id