违反PRIMARY KEY约束'PK__booking1__03317E3D'。无法在对象'dbo.booking1'中插入重复键。该语句已终止。 [英] Violation of PRIMARY KEY constraint 'PK__booking1__03317E3D'. Cannot insert duplicate key in object 'dbo.booking1'. The statement has been terminated.

查看:89
本文介绍了违反PRIMARY KEY约束'PK__booking1__03317E3D'。无法在对象'dbo.booking1'中插入重复键。该语句已终止。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生,



我收到错误当我保存按钮输入错误显示即::违反PRIMARY KEY约束'PK__booking1__03317E3D'。无法在对象'dbo.booking1'中插入重复键。该声明已被终止。



请尽快回复并提供完整的解决方案。< b>< / b>

Hello Sir ,

I was getting Error When i saved button entered error displayed i.e :: Violation of PRIMARY KEY constraint 'PK__booking1__03317E3D'. Cannot insert duplicate key in object 'dbo.booking1'. The statement has been terminated.

Please ASAP reply with full solution .<b></b>

推荐答案

您正在尝试插入重复键,其中键字段被声明为



作为主键。



检查表的主键并删除重复键的插入
you are trying to insert a duplicate key where the key field is declared

as primary key.

check the primary key of the table and eliminate the insertion of the duplicate key


亲爱的朋友

我有一个包含5条记录的数据表,这4条记录也在数据库中这里得到一个错误。违反PRIMARY KEY约束'PK_inventory'。无法在对象'dbo.inventory'中插入重复键。

该语句已被终止。

Regard

Priya
Dear Friend
I have a datatable that contain 5 records, These 4 records r also in the database here i m getting an error.Violation of PRIMARY KEY constraint 'PK_inventory'. Cannot insert duplicate key in object 'dbo.inventory'.
The statement has been terminated.
Regard
Priya


这篇关于违反PRIMARY KEY约束'PK__booking1__03317E3D'。无法在对象'dbo.booking1'中插入重复键。该语句已终止。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆