Board index » delphi » Foreign key allow null
a?§??ú
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Foreign key allow null
Dear All :
I have a problem between Delphi4 and SQL7.0 . I created two tables and relations : CREATE TABLE type ( ALTER TABLE type CREATE TABLE prod ( ALTER TABLE prod = = = = = = = = = = ======================================== I used TTable,DBNavigator,two DBEdits for insert and edit table "prod" but when I edit prod ; Delete type.Text on DBEdit. There is a problem after posting ; Error message: Master record missing ; I found that the type='' rather than type is NULL to SQL Server from SQL So,SQL Server can't find type='' from type table . Then I executed SQL command (update prod set type = null where Is there solution I can solve this problem ? Any help would be greate ! Thanks . |