How to Add Primary Key in MySQL Workbench (2024)

Published: 23 June 2024
on channel: The Code City
147
1

In this video, I'll show you how you can add Primary Key in MySQL Workbench.
Primary key is used to uniquely identify the rows in a table. Each primary key in MySQL Workbench.
You can easily add foreign key in PhpMyAdmin without writing any SQL queries.

☕Buy me a coffee: https://www.buymeacoffee.com/thecodecity
🌐Connect with me:
- TikTok: tiktok.com/@thecodecity
- Twitter:   / thecodecity  
- Instagram:   / thecodecity  
- Website: https://thecodecity.com

Steps to Add Foreign Key in PhpMyAdmin
1. Open PhpMyAdmin
2. Click on the database where you want to add foreign key
3. Click on a table in which you want to add foreign key
4. Click on Structure
5. Click on relational views
6. Select the column that you want to add as foreign key and next to it, choose referenced table and column

By the end of this video, you'll learn how you can add foreign key using phpmyadmin. If you have any problems, let me know in the comments below.

#phpmyadmin #phpmyadmintutorial #foreginkey