Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres type cast to string

SELECT * FROM table WHERE YOUR_INTEGER_VALUE::varchar = 'string';
# or
SELECT * FROM table WHERE cast(YOUR_INTEGER_VALUE as varchar) = 'string';
 
PREVIOUS NEXT
Tagged: #postgres #type #cast #string
ADD COMMENT
Topic
Name
6+5 =