MySQL: PRIMARY KEYS are easy

Published: 23 October 2022
on channel: Bro Code
48,550
905

#MySQL #tutorial #course

00:00:00 introduction
00:00:46 PRIMARY KEY with a new table
00:01:34 PRIMARY KEY with an existing table
00:02:11 examples
00:04:56 conclusion

– EXAMPLE 1 --

CREATE TABLE transactions (
transaction_id INT PRIMARY KEY,
amount DECIMAL(5, 2)
);

– EXAMPLE 2 --

ALTER TABLE transactions
ADD CONSTRAINT
PRIMARY KEY (transaction_id);


Watch video MySQL: PRIMARY KEYS are easy online without registration, duration hours minute second in high quality. This video was added by user Bro Code 23 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 48,55 once and liked it 90 people.