Board index » delphi » null in foreign key in DB2?
Kjell Rilbe
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
null in foreign key in DB2?
One of my clients will be using a DB2 server for my application's
database. I have several single-column foreign keys where I need to have null values for some records, and this works fine in SQL Server, InterBase and Access, but my client says that DB2 does not accept nulls in foreign keys. This seems totally weird to me, so I was wondering if anyone can confirm Kjell ----------------------------------------------------- CREATE TABLE FieldList ( CREATE TABLE FieldPlaces ( INSERT INTO FieldList VALUES ('XXX','TheName') So far everything's fine, but according to my client, the following will INSERT INTO FieldPlaces VALUES (3,null) My client is currently on vacation, and I'm afraid he hasn't informed me |