【报错】 【原因】 没有设置主键 【解决方案】 点击“新建查询” delete Login.dbo.Scores where UserName='admin' 运行即可 【结束】 所以大家一定要在写数据前设计好主键。