I have a MySQL table containing domain names:
+----+---------------+ | id | domain | +----+---------------+ | 1 | amazon.com | | 2 | google.com |
You could use a bit of SQL string manipulation to generate the equivalent of string.EndsWith():
SELECT * FROM table WHERE substring('www.google.com', len('www.google.com') - len([domain]) , len([domain])+1) = [domain]