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

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;
主站蜘蛛池模板: 郴州市| 贡嘎县| 桃江县| 奉节县| 宕昌县| 安泽县| 安溪县| 宜章县| 许昌县| 益阳市| 桃江县| 东乡县| 朔州市| 若尔盖县| 怀柔区| 新乡市| 思茅市| 靖远县| 安福县| 阳曲县| 香格里拉县| 丰原市| 霸州市| 冀州市| 岫岩| 揭阳市| 小金县| 昭觉县| 来凤县| 寻乌县| 莱西市| 杭锦后旗| 大石桥市| 扎鲁特旗| 新民市| 静安区| 崇礼县| 灵山县| 保山市| 扶沟县| 股票|