1

如何在 Acess 2007 上删除 SQL 中表的第一行?我尝试过 Delete Top (1),但这会导致语法错误。

4

2 回答 2

2

你会需要:

DELETE t.*
FROM Table1 t
WHERE t.ID In (SELECT Top 1 ID FROM Table1 ORDER BY ID)
于 2012-07-06T09:39:27.837 回答
0
Delete from tableName where IDCOLUMN = 
(
 select top(1) IDCOLUMN from tableName
)
于 2012-07-06T09:24:04.903 回答