外键的错误怎么解决啊?
在PB9.0中,在有关联的表中插入记录时,会出现关于外键的错误信息,如下,怎么解决啊?前提是不能删外键
SQLSTATE = 23000
[Sybase][ODBC Driver][Adaptive Server Anywhere]Integrity constraint violation: No primary key value for foreign key 'xh' in table 'rsgl'
No changes made to database.
INSERT INTO "rsgl" ( "xh", "xm", "bm", "xb", "csrq", "nl", "gzsj", "gznx", "whcd", "sf", "htz", "byxx", "zy", "sfzh" ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )