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

Code Example 1

SELECT EXISTS(SELECT 1 FROM myTbl WHERE u_tag="tag");

Learn ReactJs, React Native from akashmittal.com