update的格式是:

update table1

set table1.name=’abc’

from table1 

inner join table2

on table1.id = table2.id

where table2.number = '123'

 

delete 的格式是:

delete from table1

from table1

inner join table2

on table1.id = table2.id

注意蓝色部分,这样就可以省掉复杂的中间表了^_^

相关文章:

  • 2021-10-10
  • 2021-08-26
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-03-05
猜你喜欢
  • 2021-12-05
  • 2021-06-04
  • 2021-07-28
  • 2021-07-10
相关资源
相似解决方案