Its been a while since I did any seriously complex SQL, and so I've forgotten :s
Is it possible to have multiple foreign keys in a table? and if that is possible, can I have a foreign key which might contain a null?
My reason for doing this is that i have a list of countries in one table and a list of US states in another, and as everyone registering might not be from the US obviously the state field will contain a null.
I'm using MySQL and using the innodb engine so i have foreign key constraints.
I used it yesterday to create an ISO, then I mounted it just to check the build number, and it was 26200.8653 which I couldn't find any info about, I knew the latest Patch Tuesday biuld was 26200.8655.
Can Confirm, this only appears to happen on Edge installed on Android, No issue on Chrome, Firefox, Samsung Browsers.
Android 16
Samsung OneUI 8.5
Newest Releases of Each Browser (Edge, Firefox, Chrome, Samsung Browser)
This happens both With and Without my VPN being active.
Yay, a forced new tab telling everyone edge just updated with a load of advertising in it twice as often as we currently get it. That'll never be abused. 😏
Question
StuRReaL
Its been a while since I did any seriously complex SQL, and so I've forgotten :s
Is it possible to have multiple foreign keys in a table? and if that is possible, can I have a foreign key which might contain a null?
My reason for doing this is that i have a list of countries in one table and a list of US states in another, and as everyone registering might not be from the US obviously the state field will contain a null.
I'm using MySQL and using the innodb engine so i have foreign key constraints.
Link to comment
https://www.neowin.net/forum/topic/280665-foreign-keys/Share on other sites
4 answers to this question
Recommended Posts