Yes, but only on innodb. Innodb is currently the only shipped table format that has foreign keys implemented.
More Related Contents:
- Is the primary key automatically indexed in MySQL?
- DOs and DONTs for Indexes [closed]
- Authentication plugin ‘caching_sha2_password’ cannot be loaded
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Error Code: 2013. Lost connection to MySQL server during query
- Is there a MySQL option/feature to track history of changes to records?
- Binary Data in MySQL [closed]
- Using an Alias in SQL Calculations
- Can a table field contain a hyphen?
- Select last N rows from MySQL
- Adding a leading zero to some values in column in MySQL
- Auto Generate Database Diagram MySQL [closed]
- What’s the difference between using INDEX vs KEY in MySQL?
- View’s SELECT contains a subquery in the FROM clause
- MySQL : Multiple row as comma separated single row
- How to insert data to MySQL with auto-incremented column(field)?
- How to re-sync the Mysql DB if Master and slave have different database incase of Mysql replication?
- Case statement in MySQL
- Export a MySQL Database to SQLite Database
- How to find out the MySQL root password
- Remote connect to clearDB heroku database
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- How to display open transactions in MySQL
- MySQL query, MAX() + GROUP BY
- Easiest way to copy a table from one database to another?
- MySQL: Check if the user exists and drop it
- WooCommerce: Finding the products in database
- Mysql performance on 6 million row table
- Are there any functions in MySQL like dense_rank() and row_number() like Oracle?
- Optimistic locking in MySQL