MySQL: NOT NULL constraint

Published: 18 October 2022
on channel: Bro Code
42,647
637

#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);


Watch video MySQL: NOT NULL constraint online without registration, duration hours minute second in high quality. This video was added by user Bro Code 18 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 42,64 once and liked it 63 people.