June 2010
Intermediate to advanced
328 pages
7h 51m
English
SQL provides pattern-matching predicates for comparing strings, and this is the first solution most programmers use when searching for key words. The most widely supported of these is the LIKE predicate.
The LIKE predicate supports a wildcard (%) that matches zero or more characters. Using this wildcard before and after a key word matches any string that contains that word. The first wildcard matches any text preceding the word, and the second wildcard matches any text following the word.
| Search/anti/like.sql | |
| | SELECT * FROM Bugs WHERE description LIKE '%crash%'; |
Regular expressions are also supported by many database brands, although not in a standard way. You don’t need wildcards, because ...
Read now
Unlock full access