Check out example codes for "mysql check if value exists". It will help you in understanding the concepts better.

Code Example 1

mysql> SELECT EXISTS(SELECT * from ExistsRowDemo WHERE ExistId=105);

Learn ReactJs, React Native from akashmittal.com