例如 info表和relation表有关联,现在要在一个sql语句中同时级联更新两张表的数据
update security_code_info info LEFT JOIN security_code_relation re ON re.security_code = info.security_code set info.code_stock_state = 9, info.code_state = 9, info.code_qa_
例如 info表和relation表有关联,现在要在一个sql语句中同时级联更新两张表的数据
update security_code_info info LEFT JOIN security_code_relation re ON re.security_code = info.security_code set info.code_stock_state = 9, info.code_state = 9, info.code_qa_