How do I convert an integer to string as part of a PostgreSQL query?
So, for example, I need:
SELECT * FROM table WHERE = \'stri
You can cast an integer to a string in this way
intval::text
and so in your case
SELECT * FROM table WHERE ::text = 'string of numbers'