SQL查询中如何跳过第一行数据?

How to skip the first row of data in SQL Query?

我有这个代码:

select 来自 [数据库 $]

的 DOLFUT

如何从第二行获取数据? (仅跳过第一行数据,收集其余所有数据)

您可以使用 LIMIT 跳过任意数量的行。像

SELECT * FROM table
LIMIT 1 OFFSET 10
SELECT * FROM tbl LIMIT 5,10;  # Retrieve rows 6-15

To retrieve all rows from a certain offset up to the end of the result set, you can use some large number for the second parameter. This statement retrieves all rows from the 96th row to the last:

SELECT * FROM tbl LIMIT 95,18446744073709551615;

With one argument, the value specifies the number of rows to return from the beginning of the result set:

SELECT * FROM tbl LIMIT 5;     # Retrieve first 5 rows

MySql docs

Access中,你好像在用,你可以用:

Select DOLFUT 
From [DATABASE $] 
Where DOLFUT Not In
    (Select Top 1 T.DOLFUT 
    From [DATABASE $] As T 
    Order By 1)

表格中的数据没有固有的顺序。

To get data from the 2nd line

,您必须设置某种排序顺序,然后绕过集合的第一条记录 - 正如 Gustav 所示。