多表更新:参照另外的表来更新本表的内容

table_reference

{[inner | cross] join | {left | right} [outer] join}  内连接、左外连接、右外连接

table_reference

ON conditional_expr   表的连接条件

update table_references

SET col_name1={expr1 | default}

[ , col_name={expr2={expr2 | default }}]......

[ where where_condition]

 

update tdb_goods inner join tdb_goods_cates on goods_cate=cate_name set goods_cate =cate_id;

相关文章:

  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-11-28
  • 2021-08-27
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2021-08-14
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案