Create foreign key in mysql using workbench

  Рет қаралды 86,724

Programming w/ Professor Sluiter

Programming w/ Professor Sluiter

Күн бұрын

Пікірлер: 24
@bacanalienigena
@bacanalienigena 3 жыл бұрын
Even in 2021 super useful, thanks a million! 🖖😎
@cibelless510
@cibelless510 4 жыл бұрын
great..very clear ...nice teacher
@amymasek4650
@amymasek4650 3 жыл бұрын
Super helpful. Helped me with my exact problem!!
@hanac5586
@hanac5586 3 жыл бұрын
Thanks a lot Shad
@shadsluiter
@shadsluiter 3 жыл бұрын
My pleasure! Have you successfully made some web apps with this?
@hanac5586
@hanac5586 3 жыл бұрын
@@shadsluiter Haha, not yet. I'm a super beginner but this helped me a lot with my college work !
@laurameehan2787
@laurameehan2787 4 жыл бұрын
Solved my problem, thank you!
@MrSfaundez
@MrSfaundez 4 жыл бұрын
Thank you for your explanation, but what MySQL version did you use in this case. I ask you because according to what I knew, MySQL did not support foreign keys, since what version does MySQL support them?
@shadsluiter
@shadsluiter 4 жыл бұрын
Thanks for the heads up. I was not aware that mySQL lacked the ability to use foreign keys in old versions. It's been part of mySQL for as long as I can remember.
@MrSfaundez
@MrSfaundez 4 жыл бұрын
@@shadsluiter so sorry for my ignorance I did not know that.
@GeorgeFlorian12
@GeorgeFlorian12 3 жыл бұрын
I have followed your steps but my tables do not update after I synchronize model. I've set the foreign keys in EER Diagram but there are no foreign keys in the local tables. I've tried both Forward Engineer and Synchronize Model. Nothing works. I've been struggling for the past 4 hours to set some damned Foreign Keys between 3 tables and nothing works.
@Andy_a7
@Andy_a7 4 жыл бұрын
so instead of writing few lines of SQL in Php myAdmin to add foreign key, like: ALTER TABLE table_one_name ADD fk_column_name INTEGER, ADD CONSTRAINT constraint_name FOREIGN KEY(fk_column_name) REFERENCES table_two(id); or doing it using Structure - Relation View tab of Php myAdmin, we go to Workbench, convert Database to Model, manipulate Model and convert it back to database? seems like a lot of extra steps.
@shadsluiter
@shadsluiter 4 жыл бұрын
You are correct. You can do the same process with SQL statements if you know what to type.
@SuperLefty35
@SuperLefty35 4 жыл бұрын
Thank you my guy!
@ainazikmomunalieva3732
@ainazikmomunalieva3732 3 жыл бұрын
Thanks a lot!
@daria5358
@daria5358 3 жыл бұрын
Thank you!
@russquery
@russquery 4 жыл бұрын
Great Video, thanks a bunch!
@victoralvesdosreisdias4456
@victoralvesdosreisdias4456 3 жыл бұрын
ótimo vídeo, obrigado
@joshuasantiago156
@joshuasantiago156 5 жыл бұрын
Great Video
@akbarasghari4819
@akbarasghari4819 5 жыл бұрын
Thank you
@YT_0007
@YT_0007 4 жыл бұрын
i am unable to add a new table, please help, 2:18
@morfalm1584
@morfalm1584 4 жыл бұрын
Your second sync deleted the autoincrement attribute in the ADRESSE table ! You should'nt mix modifications in phpmyadmin AND modifications in Workbench ;-)
@arielizurieta9110
@arielizurieta9110 6 жыл бұрын
Thanks !
@RyutakuZaki
@RyutakuZaki 6 жыл бұрын
Thanks!!
Add a foreign key with mySQL workbench
24:02
Programming w/ Professor Sluiter
Рет қаралды 10 М.
Создание базы данных MySQL Workbench
12:55
МОСКОВСКИЙ КОЛЛЕДЖ БИЗНЕС-ТЕХНОЛОГИЙ
Рет қаралды 202 М.
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 7 МЛН
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 58 МЛН
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 11 МЛН
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,6 МЛН
Learning MySQL - FOREIGN KEY CONSTRAINTS
11:52
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 44 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 204 М.
Installing MySQL and Creating Databases | MySQL for Beginners
12:04
Alex The Analyst
Рет қаралды 548 М.
How to Design a Database
10:57
Database Star
Рет қаралды 63 М.
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН