Leetcode 620. Not Boring Movies

考察SQL query的写法.

格式如下:

SELECT...

FROM..

WHERE...

ORDER BY ...;

注意where中判断两个数相等,写一个等号而不是两个.

# Write your MySQL query statement below
select id,movie,description,rating
from cinema
where id%2=1 and description!='boring'
order by rating desc
;

 

posted @ 2019-04-04 21:35  周洋  阅读(180)  评论(0编辑  收藏  举报