I have below table structure:
CREATE TABLE Table_1(
id int AutoIncrement PRIMARY KEY,
message varchar(64) NOT NULL DEFAULT 'NA'
)
I run the below query:
INSERT INTO Table_1 (id, message) VALUES (null, null);
It gives me Error:
Error Code: 1048. Column 'message' cannot be null
I want the below result with the same insert query.
Output
|id | message|
|1 | NA |
Are there any MySQL settings? Thanks