,6060,6059,0 update sys_dept set ancestors=right (ancestors,char_length(ancestors)-1) where left(ancestors,1)=',';