Skip to content

Tag: postgresql

How to set default value in sql so that is displays in db

What important in A table is there are three values of type column: New, Activated, Archive. And I set default value 0 to size column of A table and after insert command I expected following result in A table: Query Table A result id b_id type size 1 101 New 10 2 101 Activated 0 3 101 Archive 0 But,