← Learn to Code
Learn to Code02:53
MySQL: NOT NULL constraint
From the creator
#MySQL #course #tutorial
CREATE TABLE products (
product_id INT,
product_name varchar(25),
price DECIMAL(4, 2) NOT NULL
);
ALTER TABLE products
MODIFY price DECIMAL(4, 2) NOT NULL;
INSERT INTO products
VALUES(104, "cookie", NULL);
Published 2022-10-18 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.
Keep exploring Learn to Code
07:31Learn to Codesentdex
06:03Learn to Codesentdex
06:36Learn to Codesentdex
10:56Learn to Codesentdex
07:10Learn to Codesentdex
12:27Learn to Codesentdex
06:03Learn to Codesentdex