What is the difference between "like" and "wildcard" in SQL?

Like operator is used to search a particular string pattern in where clause of sql query while wilcard operators are used in the like clause to mention the specific string pattern that user wants to search. Two wildcard operators that are used in like clause are- ‘%(percent) and _(underscore)’.

% wildcard operator is used to match the characters from 0 to as many as you want.

example- select name from user where name like ‘s%’;

Above query will gives you the name of all the users with initial character s.

_ wildcard operator is used to match 1 character in the string.

example- select name from user where name like ‘r_m’;

Above query will return the name of the user whose name starts with r and ends with m in between having only one character like ram.