Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres change column type string to integer

ALTER TABLE the_table ALTER COLUMN col_name TYPE integer USING (col_name::integer);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgres #change #column #type #string #integer
ADD COMMENT
Topic
Name
7+9 =