Timothy Wood <timothy(at)hallcomp(dot)com> writes:> SELECT * FROM table WHERE CAST('field' AS TEXT) LIKE '%value%';
I think you meant
SELECT * FROM table WHERE CAST(field AS TEXT) LIKE '%value%';
regards, tom lane