TRUNCATE TABLE reports_Transformations_Months
ALTER table reports_Transformations_Months DROP CONSTRAINT PK_reports_Transformations_Months;
ALTER table reports_Transformations_Months
ADD CONSTRAINT PK_reports_Transformations_Months PRIMARY KEY(Id,Eid,AreaId,IndustryId);
注:清空数据,清除主键,重新定义主键(多个主键)
感谢:https://blog.csdn.net/onexin_smile/article/details/82022426
原文:https://www.cnblogs.com/dzw159/p/12427307.html
如果您也喜欢它,动动您的小指点个赞吧