官术网_书友最值得收藏!

Greater than and Less than

Greater than (>) checks whether the value of the left field is greater than the value of the right field. If yes, then the condition becomes true. Less than (<) checks whether the value of the left field is less than the value of the right field. We can also use >/< and equals together.

For example, the following query is used to retrieve all records with login attempts more than the value 2:

SELECT * FROM `users` WHERE `login_attempts` > 2;
主站蜘蛛池模板: 汝阳县| 论坛| 沐川县| 昭平县| 乐山市| 中西区| 临泽县| 石门县| 双牌县| 大理市| 剑河县| 加查县| 砚山县| 盖州市| 那曲县| 康平县| 阳原县| 龙岩市| 通道| 洞头县| 盐边县| 南宁市| 常州市| 安庆市| 磐安县| 柘城县| 萨迦县| 广安市| 琼中| 中卫市| 蕉岭县| 卓尼县| 太白县| 赫章县| 启东市| 平阳县| 扶余县| 泰宁县| 灵川县| 上饶县| 信阳市|