String Operators and Conditions
= Exact string match, case sensitive
LIKE Exact string match, case insensitive
IN or NOT IN Select values in a list or not in a list
!= or <> Exact string unequal match, case sensitive
NOT LIKE Exact string unequal match, case insensitive
_ Used in a string to match a single character (with LIKE or NOT LIKE)
% Used in a string to match of zero or more characters (with LIKE or NOT LIKE)
WHERE clause with numeric queries
We can also filter the data for queries with numeric values.
SELECT ccid, ccnumber, ccv, expiration FROM credit_cards WHERE ccid = 3;
SELECT ccid, ccnumber, ccv, expiration FROM credit_cards WHERE ccid BETWEEN 1 AND 3;
SELECT ccid, ccnumber, ccv, expiration FROM credit_cards WHERE ccid NOT BETWEEN 1 AND 3;