Skip to main content
deleted 11 characters in body
Source Link

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:

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 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 ); 
adapt to adapted question
Source Link
Erwin Brandstetter
  • 186.6k
  • 28
  • 465
  • 639

You should specify what is the default. If I remember correctly the default constraint 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 ); 

I also removed the quotes "".

You should specify what is the default. If I remember correctly the default constraint 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 ); 

I also removed the quotes "".

You should specify what is the default. If I remember correctly the default constraint 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 ); 
Source Link

You should specify what is the default. If I remember correctly the default constraint 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 ); 

I also removed the quotes "".