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

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';
主站蜘蛛池模板: 常熟市| 东明县| 广宗县| 鄂尔多斯市| 仲巴县| 达州市| 东宁县| 民勤县| 淮南市| 若尔盖县| 虹口区| 古蔺县| 泗阳县| 贺州市| 道真| 云林县| 惠来县| 关岭| 长治市| 阿鲁科尔沁旗| 兴文县| 南丰县| 韶关市| 抚顺县| 波密县| 伊通| 五常市| 天镇县| 山阴县| 尖扎县| 定结县| 南川市| 吉安市| 牡丹江市| 敖汉旗| 平定县| 中西区| 辰溪县| 图木舒克市| 公安县| 淮滨县|