惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Know Your Adversary
Know Your Adversary
云风的 BLOG
云风的 BLOG
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
B
Blog
罗磊的独立博客
宝玉的分享
宝玉的分享
Vercel News
Vercel News
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium
P
Proofpoint News Feed
T
Threatpost
Security Latest
Security Latest
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
I
Intezer
P
Privacy International News Feed
D
Docker
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
M
MIT News - Artificial intelligence
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
Lohrmann on Cybersecurity
Google DeepMind News
Google DeepMind News
The Last Watchdog
The Last Watchdog
A
Arctic Wolf
IT之家
IT之家
S
SegmentFault 最新的问题
S
Securelist
博客园 - 叶小钗
N
News and Events Feed by Topic
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
Hacker News: Ask HN
Hacker News: Ask HN
博客园 - Franky
GbyAI
GbyAI
AI
AI
Y
Y Combinator Blog
WordPress大学
WordPress大学
Latest news
Latest news
Microsoft Security Blog
Microsoft Security Blog
人人都是产品经理
人人都是产品经理
N
News | PayPal Newsroom
The Cloudflare Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
I
InfoQ

博客园 - 弦月摘星

[转载]js技巧收集(200多个) - 弦月摘星 - 博客园 生活着,流浪着 毕业设计 熊猫病毒专杀工具 烦,好乱的事情...... 需要不断的给自己充电 CuteEditor使用手记 常用正则表达式 - 弦月摘星 - 博客园 不要一生靠技术生存 (转) 写在实习前 工作了,加油 沉着,冷静(小记第一次招聘会) 刷新验证码 - 弦月摘星 - 博客园 两首歌 在家 全国各地电台在线收听大全(转) 六级来了,janker,加油 触发器入门 ASP.NET 发邮件(转) - 弦月摘星 - 博客园
sql 违反了 PRIMARY KEY 约束,不能在对象 中插入重复键
弦月摘星 · 2007-04-11 · via 博客园 - 弦月摘星

说明你的数据里面有重复记录

两种情况

1.已存在的表中和要导入数据之间的重复

这个时候可以通过在两个表之间建立关联,将主键级联找出重复记录

2.要导入的表中存在重复记录

可通过类似如下的语句将表中的重复记录找出来

select StudentCode from StudentScore group by StudentCode[此处为 PRIMARY KEY 字段] having count(*)>1

然后通过整理删除重复的记录就可以了

发表于 2007-04-11 15:45  弦月摘星  阅读(30110)  评论(3)    收藏  举报

刷新页面返回顶部