2012-10-12 52 views

回答

2

嘗試使用這樣的: -

SELECT column name 
FROM table1 
WHERE <conditions> 
ORDER BY date DESC 
LIMIT 1 
UNION 
SELECT column name 
FROM table1 
WHERE <conditions> 
ORDER BY date ASC 
LIMIT 1 
相關問題