Tests for a matching pattern.
specifies any valid SQL expression that is either a character string type or a binary string type.
Tip | The SQL expression on the right side of the syntax, that is the pattern, is most likely to be a literal. |
See | <sql-expression> |
FedSQL Expressions |
Smith
, Smooth
, Smothers
, Smart
,
and Smuggle
.
'Sm%'
Smith
, Smooth
, Smothers
, Smart
, Smuggle
.
'%th'
Smith
, Smooth
.
'S__gg%'
Smuggle
.
'S_o'
'S_o%'
Smooth
, Smothers
.
'S%th'
Smith
, Smooth
.
'M'
m
only, so it has no
matches here.
upper(name) like 'SM%';
select name, population from densities where name like 'Al%';