SELECTcol_nameFROMtable_nameWHEREcondition;-- condition can use `AND`, `OR`, `NOT`, `()`
SELECTcol_nameFROMtable_nameWHEREcol_nameIN(val_list);-- or sub_query
-- or `NOT IN`
SELECTcol_nameFROMtable_nameWHEREEXISTS(sub_query);-- or `NOT EXISTS`
SELECTcol_nameFROMtable_nameWHEREcol_nameBETWEENlower_boundANDupper_bound;SELECTcol_nameFROMtable_nameWHEREcol_nameLIKE'PatternWithWildcards';
Wildcard
_ wildcard is used to represent exactly one character.
% wildcard is used to represent zero, one, or multiple characters.
[] wildcard is used to specify a set or range of characters to match.
- is used within [] to specify a range of characters.
^ is used within [] to exclude characters specified in the brackets.
, is used within [] to separate the candidate characters.