Search notes:

MySQL: foreign key constraints

TODO

When foreign_key_checks is enabled (default setting), character set conversion is not permitted on tables that include a character string column used in a foreign key constraint.
The required index on the parent table is automatically created along with the foreign key if it does not already exist.
information_schema.key_column_usage

See also

General notes about foreign keys in SQL
Using Oracle syntax for foreign keys in MySQL

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1740453026, '3.138.199.4', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/MySQL/objects/table/constraints/foreign-key/index(48): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78