xiaozhuing

解决就是删除该主键然后新建一个主键即可。

删除主键时报:

Cannot drop column \'cid\': needed in a foreign key constraint \'cart_ibfk_1\' of table \'cart\'

需要删除cart表里面的cart_ibfk_1主键,然后才可以删除cid主键。

再不行就新建一个表!!!

分类:

技术点:

相关文章: