What is wrong with this query?
ALTER TABLE KARGO ADD COLUMN test VARCHAR(100) NOT NULL DEFAULT t
What is wrong with this query?
ALTER TABLE KARGO ADD COLUMN test VARCHAR(100) NOT NULL DEFAULT t
The DEFAULT t
bit is wrong.
You need to quote the default value DEFAULT 't'
The default value should be quoted as the field is varchar , Correct syntax :
ALTER TABLE KARGO ADD COLUMN testt VARCHAR (100) NOT NULL DEFAULT 't'