我想獲取下一行的「對齊」值並將其存儲到名爲nextAlign的字段中的當前行中。我一直在使用分組,也爲這個表中的唯一標識符是不是一致的,並不總是有1.這裏的增量嘗試了一些數據:SQL獲取下一行值到當前行
type field starttop startleft length decimals alignment
-------------------------------------------------------------------------------------------
Text CUSTOMER DETAILS CONFIRMATION 13.00 38.00 30.00 0.00 Centre
Text Please spare a few minutes to 15.00 2.00 30.00 0.00 Left
Text confirm your details as held 15.00 2.00 30.00 0.00 Wrap
Text on our system. You may fax the 15.00 2.00 30.00 0.00 Wrap
Text form to the number above. 15.00 2.00 30.00 0.00 Wrap
Text Any information you may supply 17.00 2.00 30.00 0.00 Left
Text will not be made available to 17.00 2.00 30.00 0.00 Wrap
Text third parties according to the 17.00 2.00 30.00 0.00 Wrap
Text Privacy Act. 17.00 2.00 30.00 0.00 Wrap
Text Legal name: 20.50 2.00 30.00 0.00 Left
我要的是一個名爲「nextAlign」列具有以下數據:
nextAlign
-Left
-Wrap
-Wrap
-Wrap
-Left
-Wrap
你如何定義「下一個」對齊?哪一列可以用於排序? starttop? –
另外,DB品牌是什麼? – danihp