Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
You should specify what is the default. If I remember correctly the default constraintDEFAULT should be before NOT NULL:
CREATE TABLE test ( col_1 CHAR(12) NOT NULL, col_2 INTEGER DEFAULT 0 NOT NULL, col_3 CHAR(12) DEFAULT '' NOT NULL );
You should specify what is the default. If I remember correctly the default constraint should be before NOT NULL:
You should specify what is the default. If I remember correctly the DEFAULT should be before NOT NULL:
I also removed the quotes "".