MySQL判断奇数

mysql中不等于的符号为<>或!=
num % 2 =1; num为奇数
num % 2 =0; num为偶数
620.有趣的电影

select * from cinema 
    where description <> 'boring' and id % 2 =1
    order by rating desc

猜你喜欢

转载自blog.csdn.net/fffffffff128/article/details/89309407