Warning: fopen(/www/wwwroot/www.wendadaohang.com/data/md5_content_title/39/39c4bac84949c4cc1edb661d4cb48e49.txt): failed to open stream: No space left on device in /www/wwwroot/www.wendadaohang.com/inc/function.php on line 2468

Warning: flock() expects parameter 1 to be resource, bool given in /www/wwwroot/www.wendadaohang.com/inc/function.php on line 2469

Warning: fclose() expects parameter 1 to be resource, bool given in /www/wwwroot/www.wendadaohang.com/inc/function.php on line 2475
Mysql中的update语句如何嵌套子查询 - 99问答网

Mysql中的update语句如何嵌套子查询

如题所述

第1个回答  2018-10-25
update tablename a,(select * from tablename where xx='xxx') b set a.xx='xxx' where a.id=b.id本回答被网友采纳
第2个回答  2018-10-25
UPDATE ccms_case_allot_count SET org_code = BCTL.brno ,collector_name = INF.tlrnoFROM ccms_case_allot_count COLEFT JOIN sys_tlr_info INF ON CO.collector = inf.tlr_nameLEFT JOIN sys_bctl BCTL ON INF.brcode = BCTL.brcode
相似回答