这是一个示例表格:
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
不必连续。