postgres select convert to one value from table code example Example: postgresql cast SELECT '100'::INTEGER; SELECT CAST ('100' AS INTEGER);