請大神指教、試了很多方法不行
uj5u.com熱心網友回復:
使用case 選擇欄位值select case
when t1.a > t2.a and t1.a >t3.a then t1.a else
when t2.a>t3.a then t2.a else t3.a
end
...
from t1,t2,t3 where t1.id =t2.id and t2.id=t3.id
不同資料庫,語法可能略有差異
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/150443.html
標籤:MySQL
