alter table `tabname` add `id` bigint not null auto_increment first, add primary key (`id`);
备注:这条语句需要一次完全
本文来自博客园,作者:abce,转载请注明原文链接:https://www.cnblogs.com/abclife/p/17147989.html