Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嘿,我想通过计算表中的两列来订购我的 sql 查询。这个计算是(col1/col2)*100我将如何去订购?
(col1/col2)*100
喜欢按(col1/col2)*100DESC 排序?
我在网上找不到任何东西,所以所有的帮助都将不胜感激。
SELECT col1, col2, (col1/col2)*100 as total FROM your table ORDER BY 3 DESC /