Skip to content

Testing World

Pink Ninja Tester

  • Home
  • About

Tag: postgresql

Postgresql alter a column type

July 5, 2021November 5, 2021 pinkninjatester

Situation: The column type was a character (or another kind of type) instead of character varying. 

Solution:

ALTER TABLE [table_name] ALTER COLUMN [column_name] TYPE [wanted_type]

example:

ALTER TABLE plants ALTER COLUMN sun_exposure TYPE character varying(50)

Posted in Database, UncategorizedTagged database, postgresql comment on Postgresql alter a column type

Recent Posts

  • Django: distinct
  • Python: \ufeff solution
  • Django: AttributeError – select_related
  • ORA-01435: user does not exist
  • Git: Origin vs Upstream

Categories

  • Airflow
  • Automation
  • Database
  • django
  • Flask
  • Git
  • Java
  • NET
  • Python
  • Technology
  • Testing
  • Uncategorized

Recent Comments

    Archives

    • November 2022
    • October 2022
    • August 2022
    • July 2022
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • November 2018
    • September 2018
    • November 2017
    • March 2016
    • February 2016
    • January 2016

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

    © 2026 Testing World

    Proudly powered by WordPress, hosted by Mangelot Hosting. | Theme: x-blog by wpthemespace.com