【leetcode系列】【SQL】【简单】有趣的电影

题目:

题目链接: https://leetcode-cn.com/problems/not-boring-movies/

解题思路:

mysql库函数mod或者div的应用

代码实现:

# Write your MySQL query statement below
select id, movie, description, rating from cinema
where description != 'boring' and mod(id, 2) = 1
order by rating desc;
发布了138 篇原创文章 · 获赞 13 · 访问量 2457

猜你喜欢

转载自blog.csdn.net/songyuwen0808/article/details/105604503