MySQL: NOT NULL constraint

MySQL: NOT NULL constraint

Bro Code

1 год назад

32,243 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@BroCodez
@BroCodez - 18.10.2022 15:03

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

Ответить
@ritemid6698
@ritemid6698 - 06.10.2023 00:54

Thanks for the explanation. I was using google bard but it just gave me a complex break down which made me confused asf. Im very new to datamanagement.

Ответить
@saimoomsikto9383
@saimoomsikto9383 - 01.07.2023 00:32

can i use ADD CONSTRAINT instead of MODIFY ? IF NOT THEN WHY?

Ответить
@patrickmuthengi3499
@patrickmuthengi3499 - 29.05.2023 09:33

Hi bro, When you set a parameter not to accept NULL values and you put " " instead of a value or set of characters, it does not return an error. Please clarify this.

Ответить
@user-nd9or2iz2x
@user-nd9or2iz2x - 22.04.2023 21:52

good job ,bro

Ответить
@OpinionOfX
@OpinionOfX - 12.04.2023 10:51

Ravish kumar official

Ответить
@iskier429
@iskier429 - 18.10.2022 17:16

yo man chill

Ответить
@jokeguy5946
@jokeguy5946 - 18.10.2022 17:15

This guy is real Chad!

Ответить
@solarwater3298
@solarwater3298 - 18.10.2022 17:11

3 Videos in 9 minutes E P I C

Ответить
@derrickndi4576
@derrickndi4576 - 18.10.2022 17:10

Thank you so much. Love all your lessons

Ответить
@jacobisrealpasi7156
@jacobisrealpasi7156 - 18.10.2022 17:04

Nice, thanks man... needed this

Ответить
@fyrukmcoo100
@fyrukmcoo100 - 18.10.2022 17:02

:((

Ответить
@anasghassan360
@anasghassan360 - 18.10.2022 17:01

Love ur vids

Ответить