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

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';
主站蜘蛛池模板: 余干县| 永靖县| 雷山县| 墨玉县| 大同县| 敦化市| 高平市| 会泽县| 章丘市| 长顺县| 金坛市| 赤壁市| 太康县| 承德县| 高尔夫| 遂宁市| 濮阳县| 新乐市| 西和县| 丰都县| 体育| 垦利县| 靖远县| 九台市| 临高县| 塔河县| 临夏县| 布尔津县| 高唐县| 阿克苏市| 吉安县| 高密市| 淮安市| 东乌珠穆沁旗| 潞西市| 咸阳市| 岐山县| 威海市| 淮南市| 许昌县| 交口县|