0

我正在尝试运行删除查询

DELETE tblInventory.ProductNo, tblInventory.Vendor
FROM tblInventory
WHERE (((tblInventory.Vendor) Like "*barshop*"));

我收到以下错误消息。

CaseTracker 无法删除删除查询中的 1 条记录,因为键违规 0 条记录,因为锁违规。

我需要做什么才能使查询运行?

4

1 回答 1

1

I may try something like this:

DELETE FROM tblInventory WHERE tblInventory.Vendor LIKE '%barshop%'

That's the case if you're using SQL Server. Not sure that runs on MS-Access DB

In the DELETE statement you are deleting a complete record that matches your WHERE statement, so you don't need to put columns like in a SELECT statement.

Hope it helps.

于 2013-03-06T18:52:17.717 回答