Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
- EXAMPLE 1CREATE TABLE products ( product_id INT, product_name varchar(25), price DECIMAL(4, 2) DEFAULT 0);ALTER TABLE products ALTER price SET DEFAULT 0;INSERT INTO products (product_id, product_name)VALUES (104, "straw"), (105, "napkin"), (106, "fork"), (107, "spoon");SELECT * FROM products;- EXAMPLE 2CREATE TABLE transactions( transaction_id INT, amount DECIMAL(5, 2), transaction_date DATETIME DEFAULT NOW());SELECT * FROM transactions;INSERT INTO transactions (transaction_id, amount)VALUES (1, 4.99);SELECT * FROM transactions;INSERT INTO transactions (transaction_id, amount)VALUES (2, 2.89);SELECT * FROM transactions;INSERT INTO transactions (transaction_id, amount)VALUES (3, 8.37);SELECT * FROM transactions;DROP TABLE transactions;
very easy to understand thanku
yeah
Great!!Please keep uploading videos of sql more & more
Dude, I was just thinking about trying Mysql today and you're releasing this video. Thank you very much!
i just see myself graduating because of your page bro,thank you so much
2:24 looks like you answered my question from a few videos ago.
You are the best
Thank you for making these videos, they are easy to follow and understand.
Thank you-excellent 🕊
you're a Legend, thank you so much!!, that's so helpful!!!!
✅
Why did you use ALTER instead of MODIFY? 03:40
I also have this doubt
This would also work-ALTER TABLE productsMODIFY price DECIMAL (5,2) DEFAULT 0.00;
Please continue the series❤
Kindly kindly Bro share us your Programming life journey or Q/A OR you interview and face revealed, love from Pakistan
you great!!!!!!
👀
- EXAMPLE 1
CREATE TABLE products (
product_id INT,
product_name varchar(25),
price DECIMAL(4, 2) DEFAULT 0
);
ALTER TABLE products
ALTER price SET DEFAULT 0;
INSERT INTO products (product_id, product_name)
VALUES (104, "straw"),
(105, "napkin"),
(106, "fork"),
(107, "spoon");
SELECT * FROM products;
- EXAMPLE 2
CREATE TABLE transactions(
transaction_id INT,
amount DECIMAL(5, 2),
transaction_date DATETIME DEFAULT NOW()
);
SELECT * FROM transactions;
INSERT INTO transactions (transaction_id, amount)
VALUES (1, 4.99);
SELECT * FROM transactions;
INSERT INTO transactions (transaction_id, amount)
VALUES (2, 2.89);
SELECT * FROM transactions;
INSERT INTO transactions (transaction_id, amount)
VALUES (3, 8.37);
SELECT * FROM transactions;
DROP TABLE transactions;
very easy to understand thanku
yeah
Great!!
Please keep uploading videos of sql more & more
Dude, I was just thinking about trying Mysql today and you're releasing this video. Thank you very much!
i just see myself graduating because of your page bro,thank you so much
2:24 looks like you answered my question from a few videos ago.
You are the best
Thank you for making these videos, they are easy to follow and understand.
Thank you-excellent 🕊
you're a Legend, thank you so much!!, that's so helpful!!!!
✅
Why did you use ALTER instead of MODIFY? 03:40
I also have this doubt
This would also work-
ALTER TABLE products
MODIFY price DECIMAL (5,2) DEFAULT 0.00;
Please continue the series❤
Kindly kindly Bro share us your Programming life journey or Q/A OR you interview and face revealed, love from Pakistan
you great!!!!!!
👀