Suppose I have this table:
id | name | city
------------------
1 | n1 | c1
2 | n2 | c2
3 | n3 | c3
4 | n4 | c4
I want to check if the value c7
exists under the variable city
or not.
If it does, I will do something.
If it doesn't, I will do something else.