肥皂起泡泡
您可以在SQL Server的DELETE中的FROM子句中使用JOIN语法,但仍仅从第一个表中删除,它是专有的Transact-SQL扩展,可替代子查询。从这里的例子: -- Transact-SQL extension DELETE FROM Sales.SalesPersonQuotaHistory FROM Sales.SalesPersonQuotaHistory AS spqh INNER JOIN Sales.SalesPerson AS sp ON spqh.BusinessEntityID = sp.BusinessEntityID WHERE sp.SalesYTD > 2500000.00;