我使用以下命令连接两个数据库之间的记录
select uat.users.fname,
rent.accounts.expires
from uat.users
inner join rent.accounts
on uat.users.fname=rent.accounts.account
where rent.accounts.expires < '2015-07-03'
如何删除上述命令返回的所有记录(来自uat.users)?
答案 0 :(得分:2)
你可以试试这个:
delete uat.users
from uat.users
inner join rent.accounts
on uat.users.fname=rent.accounts.account
where rent.accounts.expires < '2015-07-03'