Hi I don't understand why my pattern does not work. It seems to be the same as in many examples I've seen on the Internet. Can you help?
select city from cities where city like 'ny';
56 rows
select city from cities where city like '[a-z][a-z]';
0 row
likesupports regex, when the docs state that other functions must be used for that: postgresql.org/docs/9.0/functions-matching.html "many examples I've seen on the internet" are useless without citation, especially if they refer to other types of SQL.LIKEoperator, though some SQL dialects offer it as an extension -- most notably T-SQL, the dialect used by SQL Server, which is probably what your examples are using.