Answers for "null value in column "" violates not-null constraint"

SQL
0

inserting values with beekeeper get error null value in column createdAt violates not-null constraint

INSERT INTO archive (id, title, createdAt) SELECT id, title, NOW() FROM old_archives;
Posted by: Guest on December-17-2020
0

null value in column violates not-null constraint

To get rid of the NOT NULL costraint run:
ALTER TABLE <your-table> ALTER COLUMN <your-column> DROP NOT NULL;
Posted by: Guest on October-28-2021

Code answers related to "null value in column "" violates not-null constraint"

Code answers related to "SQL"

Browse Popular Code Answers by Language