Тёмный

MySQL: PRIMARY KEYS are easy 

Bro Code
Подписаться 1,9 млн
Просмотров 40 тыс.
50% 1

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

Опубликовано:

 

25 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@BroCodez
@BroCodez Год назад
- 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);
@RGGBMGO
@RGGBMGO Год назад
First, heart?Btw ur coding videos are the best, you help and educate so many 😁
@princeakinolaoluwagbemigag1750
Thank you for this video big bro. Pls what is the difference between the primary key and the unique constraint?
@farisabufarha531
@farisabufarha531 Год назад
unique constraint could be null
@MohammadMomin
@MohammadMomin 8 месяцев назад
John Smith Lol😂😂
@themachina7713
@themachina7713 Год назад
why does my sql table add a null row after i added a PRIMARY KEY constraint?
@martins__23
@martins__23 Год назад
Got the same question
@luistroyparaiso5853
@luistroyparaiso5853 Год назад
How do you make primary keys like "AA-0001"??
@peachezprogramming
@peachezprogramming Год назад
set the datatype to string
@crackrokmccaib
@crackrokmccaib Год назад
For whatever reason, I thought you were Canadian until now.
@emanuelitalo5073
@emanuelitalo5073 Год назад
make subtitles for portuguese br please😳😳😳
@farhangmdc
@farhangmdc Год назад
Good Video , How to get Primary Key Auto Generated ? 🔑🔑
@BroCodez
@BroCodez Год назад
next video
@tarunmangalampalli1179
@tarunmangalampalli1179 Год назад
Auto_increment
@kusumaparimi2929
@kusumaparimi2929 4 месяца назад
create table transaction ( trans_id int, amount decimal(10,2), constraint pk_transaction primary key(trans_id, amount) ); we apply primary key for multiple columns using this query... but in this video said, only one primary key for each table??
@hertz-2007
@hertz-2007 2 месяца назад
true
Далее
MySQL: AUTO_INCREMENT is awesome
3:55
Просмотров 51 тыс.
MySQL: FOREIGN KEYS are easy (kind of)
8:17
Просмотров 189 тыс.
Volkswagen судится с Volkswagen?
01:00
Просмотров 1,9 млн
Повага | GOVOR TikTok #govor #shots
00:53
Просмотров 294 тыс.
MySQL: DEFAULT constraint is easy
8:19
Просмотров 23 тыс.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Просмотров 109 тыс.
Python MySQL Tutorial - Foreign Keys & Relating Tables
16:57
Primary key on two columns SQL Server
5:39
Просмотров 83 тыс.
MySQL: INDEXES are awesome
6:26
Просмотров 43 тыс.
Primary & Foreign Keys
8:25
Просмотров 470 тыс.
MySQL: CHECK constraint is easy
3:57
Просмотров 32 тыс.
MySQL SELF JOINS are ... ughhh
10:03
Просмотров 52 тыс.