set @rownum=0;
update hp_sync_doctor
SET DOCTOR_SORT = (
select @rownum := @rownum +1 as nid)
@rownum=0代表修改从1开始
表名:hp_sync_doctor
字段名:DOCTOR_SORT
set @rownum=0;
update hp_sync_doctor
SET DOCTOR_SORT = (
select @rownum := @rownum +1 as nid)
@rownum=0代表修改从1开始
表名:hp_sync_doctor
字段名:DOCTOR_SORT