Oracle SQL using both for template

I know that you can use LIKE for the select statement to search for a string, and then use wildcards to match that string .. ex:

Select * from table where first_name LIKE '%r%';

Will return names such as robert, roland, craig, etc.

I am curious how you will look for the actual pattern in a string such as%:

Select * from table where values LIKE '% % %';

(average% is what you would be looking for) (obviously this is the wrong way to do this, so I ask).

+7
source share
2 answers
+8
source

Just LIKE '%%' will be even easier.

-3
source

All Articles