那就直接用update吧
update t1 seet value=(select value from
(select id,parentid value from t1 where id<>parentid ) b where t1.t1.id=b.parentid)
where exists (select 1 from (select id,parentid value from t1 where id<>parentid ) b where t1.t1.id=b.parentid)[/quote]
嗯,可以的,谢谢
那就直接用update吧
update t1 seet value=(select value from
(select id,parentid value from t1 where id<>parentid ) b where t1.t1.id=b.parentid)
where exists (select 1 from (select id,parentid value from t1 where id<>parentid ) b where t1.t1.id=b.parentid)