2016-06-27 67 views

回答

1

不知道我理解你的quetsion ......但是這可能給你一個想法:

SELECT (comments_html+fb_total+google_plus_one+pinterest+linked_in) as 'total_social', * 
FROM npt_articles 
WHERE <<something>> 
ORDER BY 1 
+1

足夠接近,我沒有'SELECT *,(comments_html + fb_total + google_plus_one + Pinterest的+ linked_in)作爲total_social'在開始處和末尾的ORDER BY total_social DESC' – Thermatix