mysql, sqlserver associated table batch edit

A, mysql modify the associated table batch

The UPDATE sp_sys_dictionaries_category A # according to the corresponding id, the value assigned to b.ORGID a.FLONGYARN
 the LEFT  the JOIN sp_sys_dictionaries B the ON b.cid = a.id
 the SET b.username = a.username

Two, sqlserver associated table batch edit

The UPDATE A the SET a.FLONGYARN = b.ORGID     - according to the corresponding id, the value assigned to b.ORGID a.FLONGYARN 
the FROM ST_LongYarn A
 the LEFT  the JOIN ST_InspectionRecordOfCaloco B the ON b.fid = a.fid

 

Guess you like

Origin www.cnblogs.com/noire/p/11293729.html