Created
October 2, 2023 13:48
-
-
Save kad1r/b3876e979076d4222d3b2a99a1b9aa38 to your computer and use it in GitHub Desktop.
Postgres string to bigint conversion example by USING column_name:bigint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE the_table ALTER COLUMN col_name TYPE integer USING (col_name::integer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment