MySQL Foreign Key error 1452 in HeidiSQL -


i have created tables , want set foreign key, seems not work. have table reservations: table reservations

and have table server_info: table server_info

when want set foreign key from reservations table srv_info table, got error sql error 1452: error 1452

when set fk from srv_info table reservations table, strangely works: working fk

can please help?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -