Username
Password
Sign in
Forgot your password?
Home » 善用 ORDER BY 位置順序編號
當 UNION ALL 匯集好幾個查詢語句,而偏偏要用來排序的欄位, 在各查詢語句中的欄位名又不一致時, 這時 ORDER BY 查詢結果中某一個欄位的位置順序編號,就很好用, 例如 ORDER BY 1
Tags: SQL Server, SQL語法
Name *
Email *
Website
Comment
Add Comment
樂倍達數位科技 版權所有 Copyright © 2004-2011 DoubleService Digital Technology. All Rights Reserved.