---
title: "Discussion on \"How to Create MYSQL Table with Foreign Key Constraint and add sample data\" | Hashnode"
description: "Discussion on \"How to Create MYSQL Table with Foreign Key Constraint and add sample data\". In this example we received an error cause a Quiz table that references a User table via teacher_id, the value in teacher_id must correspond to an existing"
url: "https://hashnode.com/posts/how-to-create-mysql-table-with-foreign-key-constraint-and-add-sample-data/671bdc838db028964ca830c7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Create MYSQL Table with Foreign Key Constraint and add sample data](https://software-engineer.thirdygayares.com/how-to-create-mysql-table-with-foreign-key-constraint-and-add-sample-data?utm_source=hashnode&utm_medium=feed)

In this example we received an error cause a Quiz table that references a User table via teacher\_id, the value in teacher\_id must correspond to an existing

Oct 25, 2024 · 4 min read · software-engineer.thirdygayares.com  
Read the article

-   [#insert-data-mysql](https://hashnode.com/tag/insert-data-mysql)
-   [#mysql](https://hashnode.com/tag/mysql)

## Written by

[Thirdy Gayares](https://hashnode.com/@thirdygayares)

@thirdygayares

  
[View profile](https://hashnode.com/@thirdygayares)

software-engineer

I am a dedicated and skilled Software Engineer specializing in mobile app development, backend systems, and creating secure APIs. With extensive experience in both SQL and NoSQL databases, I have a proven track record of delivering robust and scalable solutions. Key Expertise: Mobile App Development: I make high-quality apps for Android and iOS, ensuring they are easy to use and work well. Backend Development: Skilled in designing and implementing backend systems using various frameworks and languages to support web and mobile applications. Secure API Creation: Expertise in creating secure APIs, ensuring data integrity and protection across platforms. Database Management: Experienced with SQL databases such as MySQL, and NoSQL databases like Firebase, managing data effectively and efficiently. Technical Skills: Programming Languages: Java, Dart, Python, JavaScript, Kotlin, PHP Frameworks: Angular, CodeIgniter, Flutter, Flask, Django Database Systems: MySQL, Firebase Cloud Platforms: AWS, Google Cloud Console I love learning new things and taking on new challenges. I am always eager to work on projects that make a difference.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
