Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我们运行具有动态条件的查询,该查询是从用户输入启动的。我们想删除一些项目。
比如(只是一个随机的例子):
DELETE FROM pictures WHERE article = 10 AND id >= 12 AND id <= 25 AND user_privelege = 8
有什么方法可以检索哪些行已被删除?
不可以。您需要事先使用完全相同的WHERE子句从表中进行选择。
WHERE