标题:外键的错误怎么解决啊?
只看楼主
birdneverdie
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-9-7
 问题点数:0 回复次数:0 
外键的错误怎么解决啊?

在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 ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )

搜索更多相关主题的帖子: 记录 信息 primary foreign 
2006-09-07 18:15



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-88680-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014829 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved