主页

索引

模块索引

搜索页面

5.2.8. delete命令

DELETE FROM <tbl_name> [WHERE where_definition]

-- delete join语法
DELETE customers
FROM customers
LEFT JOIN orders ON customers.customerNumber = orders.customerNumber
WHERE orderNumber IS NULL;

DELETE offices, employees
FROM offices
INNER JOIN employees
      ON employees.officeCode = employees.officeCode
      WHERE offices.officeCode = 5

主页

索引

模块索引

搜索页面