☞ Relational operators in MySQL are used to compare values in SQL queries and conditions to determine whether a particular condition is true or false.
☞ These operators are typically used in the WHERE clause of SELECT, UPDATE, DELETE.
☞ The commonly used relational operators in MySQL.
S.No. | Operator | Description |
---|---|---|
1. | = | equal to |
2. | < | less than |
3. | > | greater than |
4. | <= | less than or equal to |
5. | >= | greater than or equal to |
6. | <> OR != | not equal to |
☞ Syntax :
☞ Example :