CREATE TABLE abc (
name char(20) NOT NULL,
age int NULL,
mob varchar NOT NULL UNIQUE
);
I have created Table and defined the name
column as NOT NULL..
but still it is accepting the empty string like ' '
INSERT INTO abc VALUES ('',25, 8945252635);
please guide how to overcome this.?
//when i tried with NULL keyword instead of ' ' empty string then it is showing error as expected.
INSERT INTO abc VALUES (null,25, 8945252635);