IntermediateBasic SELECT
Change column data type
The query
SQL
ALTER TABLE employees
ALTER COLUMN contact_number TYPE VARCHAR(50);Note
“Changes the data type. PostgreSQL will try to cast existing data. If implicit cast fails, you must add USING clause.