2013-03-06 47 views

回答

3

你可以把任何东西在你的SELECT列表和ORDER BY你想,只要它是任何列tableatableb

SELECT a.ID 
FROM tablea 
INNER JOIN tableb ON tablea.ID = tableb.ID 
ORDER BY tableb.ID 
1

您是否尝试过使用

Select (columns that you want to display) 
from TableA INNER JOIN TableB 
ON TableA.col = TableB.col 
Order By TableB.ColumnName