postgres create column with default value

Hello developers! In this article I have shared the details about “postgres create column with default value”. Okay, let’s move on to the article.

postgres create column with default value

ALTER TABLE users
  ADD COLUMN "priv_user" BOOLEAN DEFAULT FALSE;
ALTER TABLE ONLY users ALTER COLUMN lang SET DEFAULT 'en_GB';

Final Thoughts

I hope this post helps you to know about “postgres create column with default value”. If you have any questions regarding this tutorial please let us know via the comment section. Share this post with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment