By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
SELECT
*
FROM
records
WHERE
'https://google.com/lorem_ipsum' LIKE REPLACE(pattern, '*', '%')
;
id | pattern |
---|---|
2 | https://google.com/* |
id | pattern |
---|---|
2 | https://google.com/* |