Sorry I am new to working with databases – I am trying to perform a query
that will get all of the characters that are similar to a string in SQL.
For example,
If I am looking for all users that begin with a certain string, something like S* or Sm* that would return “Smith, Smelly, Smiles, etc…”
Am I on the right track with this?
Any help would be appreciated, and Thanks in advance!
The
LIKEoperator is what you are searching for, so for your example you would need something like:The
%character is the wild-card in SQL.