📜  sql 从关系中删除 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:24.039000             🧑  作者: Mango

代码示例1
# your select statement acctually works (and I don't know wich is your statement...).
# You must replace only
SELECT ...
# with
DELETE [table name or alias]
# and leave everything else the same.

# e.g:
DELETE cu FROM CustomUser cu 
left join RoleMapping on cu.id = RoleMapping.principalId 
WHERE RoleMapping.roleId = 1;