MYSQL 語句多種排序

mysql 語句mysql SELECT *,IF(((UNIX_TIMESTAMP(NOW())-`END_TIME`) <0), 1, 0) AS t, UNIX_TIMESTAMP(NOW())-`end_time` AS now FROM `demo` ORDER BY top DESC, t DESC, end_time ASC 數據 -- -- 表的結構 `demo` -- CREA
相關文章
相關標籤/搜索