2
为什么我不能在DELETE语句中使用别名?
在Visual Studio 2010的SQL Server Compact Edition中(也许我不知道SQL Server和SQL),此命令有效: DELETE FROM foods WHERE (name IN ('chickens', 'rabbits')) 但是此命令产生以下错误: Error near identifier f. Expecting OUTPUT. DELETE FROM foods f WHERE (f.name IN ('chickens', 'rabbits'))