| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Martijn Tonies | Date: | May 27 2004 2:55pm |
| Subject: | Re: Foreign Key Constraints | ||
| View as plain text | |||
Hi, > > Why not? What's wrong with this: > > > > BORROWER > > BorrowerID > > > > BOOKS > > BookID > > BorrowerID (nullable) > > > > FK from Books.BorrowerID to Borrower.BorrowerID > > > > I haven't checked, but this _should_ be possible. > > > > With regards, > > Its a foreign key, you can not null foreign keys.. Thats the problem. If this really is the case with MySQL, then this is the only database engine that I know that doesn't allow this. With regards, Martijn Tonies Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL Server. Upscene Productions http://www.upscene.com
| Thread | ||
|---|---|---|
| • Foreign Key Constraints | kyuubi | 27 May |
| • Re: Foreign Key Constraints | Jeff Smelser | 27 May |
| • Re: Foreign Key Constraints | Colin Bull | 27 May |
| • Re: Foreign Key Constraints | Robert J Taylor | 27 May |
| • Re: Foreign Key Constraints | Martijn Tonies | 27 May |
| • Re: Foreign Key Constraints | Jeff Smelser | 27 May |
| • Re: Foreign Key Constraints | Martijn Tonies | 27 May |
| • Re: Foreign Key Constraints | Martijn Tonies | 28 May |
| • Re: Foreign Key Constraints | Jeff Smelser | 28 May |
| • Re: Foreign Key Constraints | Martijn Tonies | 28 May |
| • Re: Foreign Key Constraints | Michael Stassen | 28 May |
| • Re: Foreign Key Constraints | Michael Stassen | 28 May |
| • Re: Foreign Key Constraints | Martijn Tonies | 28 May |
| • Re: Foreign Key Constraints | Jeff Smelser | 28 May |
| • Re: Foreign Key Constraints | Jeff Smelser | 28 May |
| • Re: Foreign Key Constraints | Martijn Tonies | 28 May |
| • Re: Foreign Key Constraints | SGreen | 27 May |
