在设置双主键(学号sno,书号bno)时,用插入记录语句:
TDM.lenttable.InsertRecord([Edit1.Text,Edit2.Text,date,date+15]);
时出错了,
报错为:
Project Project1.exe reised Exception class EDataBaseError with message"A componont named PK_lent already exists".Process stopped.
但我只设一个主键时,就没有这样的问题,但需求分析要求双主键。
各位大虾帮忙,小弟感激不尽。
TDM.lenttable.InsertRecord([Edit1.Text,Edit2.Text,date,date+15]);
时出错了,
报错为:
Project Project1.exe reised Exception class EDataBaseError with message"A componont named PK_lent already exists".Process stopped.
但我只设一个主键时,就没有这样的问题,但需求分析要求双主键。
各位大虾帮忙,小弟感激不尽。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货