Skip to content
Advertisement

How to alter a column’s data type in a PostgreSQL table?

Entering the following command into a PostgreSQL interactive terminal results in an error:

What is the correct command to alter the data type of a column?

Advertisement

Answer

See documentation here: http://www.postgresql.org/docs/current/interactive/sql-altertable.html

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement