根据提供的代码,报错为插入重复的数据。解决方法是修改插入语句,确保插入的数据不重复,例如:

Insert into NewCategory ( title,show,description) values ('产品与服务', 1 , '启用') ;
Insert into NewCategory ( title,show,description) values ('网上营业厅', 1 , '启用') ;
Insert into NewCategory ( title,show,description)values ('企业动态', 1 , '启用') ;
Insert into NewCategory ( title,show,description)values ('加盟咨询', 1 , '启用') ;
Insert into NewCategory ( title,show,description)values ('加盟咨询', 1 , '启用') ;
create database NewSys;gouse NewSys;gocreate table NewCategory	id int identity11 primary key	title varchar100 not null	show bit	description varchar500	Insert into NewCategory titleshowdescription val

原文地址: https://www.cveoy.top/t/topic/hLYm 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录