Check here, for more details : https://www.c-sharpcorner.com/article/mysql-if-function/
Interviews2 answers
What is the use of MySQL IF Function?
2 Answers
Onkar SharmaPosted May 30, 2021, 9:52 AM EDT
The IF() function returns a value if a condition is TRUE, or another value if a condition is FALSE.
SELECT IF(500<1000, "YES", "NO");
Output : YES
Pranam BhatPosted May 26, 2021, 9:10 AM EDT

