update groupuser as g1 join groupuser as g2 on (g1.user_id=1 and g2.user_id = 2)
or(g1.user_id = 2 and g2.user_id=1)
set g1.group_id = g2.group_id,g2.group_id=g1.group_id;
update groupuser as g1 join groupuser as g2 on (g1.user_id=1 and g2.user_id = 2)
or(g1.user_id = 2 and g2.user_id=1)
set g1.group_id = g2.group_id,g2.group_id=g1.group_id;
转载于:https://www.cnblogs.com/mybug/p/5980667.html
道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。