截掉 15825008894939184 前三位 长度,保留158后边的值:
UPDATE org_employee
SET id=SUBSTRING(id,4) WHERE id IN (15825008894939184,15825019871432705,15825024606801933);
设置自增值
ALTER TABLE org_employee AUTO_INCREMENT=3226730152071220;
原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/tech/database/274160.html