0
我試圖通過選擇ORDER結果。那可能嗎?從mysql中選擇數學並按它們排序
SELECT *,(row1/row2/row3/row4) as order111 FROM `ad` ORDER BY `order111` ASC
我試圖通過選擇ORDER結果。那可能嗎?從mysql中選擇數學並按它們排序
SELECT *,(row1/row2/row3/row4) as order111 FROM `ad` ORDER BY `order111` ASC
不知道你想什麼來實現的,但這應該工作:
SELECT *,(row1/row2/row3/row4) as order111
FROM `ad`
ORDER BY (row1/row2/row3/row4) ASC
你嘗試了嗎?
SELECT *
, (row1/row2/row3/row4) AS order111
FROM ad
ORDER BY order111 ASC
在MySQL中是可以接受的。
是............... – Johan 2011-04-21 01:41:43