- The CHECK constraint is used to limit what values can be placed in a column. CREATE TABLE employees( employee_id INT, first_name VARCHAR(50), last_name VARCHAR(50), hourly_pay DECIMAL (5, 2), hire_date DATE, CONSTRAINT chk_hourly_pay CHECK (hourly_pay >= 10.00) ); ALTER TABLE employees ADD CONSTRAINT chk_hourly_pay CHECK (hourly_pay >= 10.00); INSERT INTO employees VALUES (6, "Sheldon", "Plankton", 5.00, "2023-01-07"); ALTER TABLE employees DROP CHECK chk_hourly_pay;
@MinhVu-bz6fe2 жыл бұрын
You're literally carrying me through Uni right now. Thank you, Bro. Truly.
@toke7342 Жыл бұрын
Literally?
@Vivek_xkt2 жыл бұрын
That fast forwarded typing sound so satisfying
@TheLastRaven2 жыл бұрын
We literally started sql today your timing is great thank you.
@KarolKasperek2 жыл бұрын
same
@nihongo_4 ай бұрын
best channel ever!
@mdjahangirhossain6203 Жыл бұрын
You are good man you make it easy for us
@ahmetunaldi760119 күн бұрын
Bro is great....
@avaygc56462 жыл бұрын
your tutorial is great could please make a tutorial for node js and dyango 💗
@enlightened73542 жыл бұрын
Can you make also mongo db and Java Spring tutorials? Thanks man. Because of you i learned MySQL. I was struggling and now im able to write my own database in Java using JDBC.
@MalayalamTele5 ай бұрын
ALTER ADD not working with constrain. Error code 3819 Check Constraint 'chk_hourly_pay' is violated
@sifatniloy37839 ай бұрын
I got Error Code: 3821. Check constraint 'check_hourly_pay' is not found in the table, may be I mistyped the constraint. How to find out what I gave the constraint name for that column?
@mateenraza73409 ай бұрын
In the output window, it lists the action you make; you can find out what name have you mistyped from there.
@mhreda18498 ай бұрын
Thank you ! Notice : when i want to delete constraint check drop check "constraintName" => is not working for me but when i do : drop constraint "constraintName" maybe the first syntax is not correct and thank you again :) (FROM MOROCCO)
@KoenigOne Жыл бұрын
thanks bro
@f15srinivas828 ай бұрын
there should be another name for this channel that is 'bro god" really you are god for us bro.
@richardsijebor20594 ай бұрын
This is extreme man. "god" ?. You should speak for yourself.
@mechagear48192 ай бұрын
@@richardsijebor2059 shut your dumbass up lil boy
@haole18152 жыл бұрын
First comment !!! U make my day Bro :D
@BroCodez2 жыл бұрын
🎉
@ابوعمر-ذ3س3ج9 ай бұрын
Drop check doesn't work in Microsoft sql can anyone help