Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres float to int

SELECT CAST(float_to_convert AS INTEGER) FROM your_table;
-- Or
SELECT float_to_convert::integer FROM your_table;
 
PREVIOUS NEXT
Tagged: #postgres #float #int
ADD COMMENT
Topic
Name
8+4 =