-1
我在這裏提出質疑: How make this sql. (conditions sql)RE:如何讓這個sql。 (條件SQL)
,但現在,我想
SELECT SUM(Post.rating) as countRating <--- THIS i want Post.rating * 5 WHEN Post.recommended = 1
FROM posts as Post
ORDER BY countRating DESC
幫我
SO的意圖之一就是幫助你學會思考。你需要冥想先前給你的答案,看看它們如何應用於新的情況。 – 2010-09-30 05:15:49
,因爲我永遠不會使用這個。對不起 – meotimdihia 2010-09-30 05:24:08