刷题日记 一、题目二、题解1.SQL语句2.解析 总结 一、题目 二、题解 1.SQL语句 代码如下(示例): select * from cinema where mod(id, 2) = 1 and description != 'boring' order by rating desc; 2.解析 总结 1.判断奇偶数 方式一:mod(id,2)=0或1 方式二:id%2=0或1 2.order by 排序 默认ASC(升序) DESC(降序)