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

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';
主站蜘蛛池模板: 凤山市| 祁阳县| 九台市| 邵武市| 湾仔区| 白山市| 左云县| 长顺县| 油尖旺区| 武威市| 慈利县| 讷河市| 淄博市| 平昌县| 西乌珠穆沁旗| 武邑县| 高州市| 甘谷县| 英超| 石城县| 观塘区| 文安县| 莲花县| 永州市| 贵州省| 房产| 七台河市| 肃宁县| 宿松县| 金川县| 清镇市| 眉山市| 东乡族自治县| 磴口县| 汉沽区| 黄陵县| 芦山县| 博乐市| 含山县| 泰兴市| 博客|