这是示例表:
Column | 1st record | 2nd record | 3rd record | 4th record | etc<br />
id (primary) | 1 | 5 | 8 | 12 | etc<br />
name | name 1 | name 2 | name 3 | name 4 | etc<br />
date | date 1 | date 2 | date 3 | date 4 | etc<br />
callValue (unique) | val1 | val2 | val3 | val4 | etc
我选择了一行作为要显示的数据(例如:带有 callValue: val3 的行)。但我找不到解决方案:
我需要选择上一行和下一行。因此,在此示例中,我需要从行 callValue: val4 和 callValue: val2 或 id: 5 和 id: 12 中获取数据。
它不能用id
= id
+-1 完成,因为id
由于删除行而不必是连续的。