呵呵,写个储存过程吧,或者在程序中一个个取出来,重新赋值后Update

解决方案 »

  1.   

    用两条SQL语句,update 和 insert可以解决,不过表设计的真是不好
      

  2.   

    pos:=search the place where you want to insert;
    for i:=pos to last record do begin
        get last 3 characters;
        convert it to number;
        number++;
    end;
    insert the record
      

  3.   

    做一个转换程序,把yichunxxx做成两个字段 yichun和 xxx;
      

  4.   

    同意两条SQL语句的方法!
    Update table1 set  编号='yuchun'+right('000',(3-len(Cast((Cast(right(编号,3) as Integer)+1) as varchar(3))))+Cast((Cast(right(编号,3) as Integer)+1) as varchar(3)) 
    where Cast(right(编号,3) as Integer)>=4
    Insert into table1 values ('yichun004','Name','na','副局长')