N
neal_wang
Unregistered / Unconfirmed
GUEST, unregistred user!
数据库Microsoft Sql Server 2000<br>表名Table<br>栏位<br>Pr Item desc Name<br>Pr1 1000 A1<br>Pr1 1001 D1<br>Pr1 1002 x1<br>Pr1 1049 y1<br>Pr1 2000 A2<br>Pr1 2001 D1<br>Pr1 2002 x1<br>Pr1 2049 y1<br>Pr2 1000 B1<br>Pr2 1001 D1<br>Pr2 1002 x1<br>Pr2 1049 y1<br>Pr2 2000 B2<br>Pr2 2001 D1<br>Pr2 2002 x1<br>Pr2 2049 y1<br><br>现在希望的结果是,<br>项目PR1的Item=1000的Desc=A1,则Item=1001->1049的Desc=A1<br>项目PR1的Item=2000的Desc=A2,则Item=2001->2049的Desc=A2<br>项目PR2的Item=1000的Desc=B1,则Item=1001->1049的Desc=B1<br>项目PR2的Item=2000的Desc=B2,则Item=2001->2049的Desc=B2<br><br>麻烦各位大侠相救!!!<br><br>Update Table<br>Set Name=(Select Desc From Table where Item='%000')<br>Where