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

Equal To and Not Equal To

Equal To (=) checks whether the values of the two fields are equal or not. If it matches, then the condition becomes true and fetches for further processing. If it doesn't match, then condition should be Not Equal which would revert the way of Equal To. It would fetch data based on the condition that doesn't match.

For example, the following query is used to retrieve all records with the city matching New York:

SELECT * FROM `users` WHERE `city` = 'New York';
主站蜘蛛池模板: 玉环县| 宁安市| 峡江县| 大田县| 乐至县| 东城区| 离岛区| 娱乐| 西畴县| 大石桥市| 兴安县| 阳信县| 永善县| 镇江市| 灵川县| 重庆市| 台南县| 九寨沟县| 灵寿县| 黑水县| 闵行区| 临邑县| 开远市| 宜州市| 贺州市| 博湖县| 卢氏县| 石狮市| 克拉玛依市| 潞城市| 普陀区| 新安县| 大石桥市| 锡林浩特市| 双江| 东乌珠穆沁旗| 洪江市| 洛川县| 富平县| 英德市| 高密市|