mysql语句中如何将数据同时插入到两张表中

mysql语句中如何将数据同时插入到两张表中
如A表中的a,b,c三个字段和B表中的d,e,f三个字段用一句sql语句同时插入,请高手帮忙下

insert all
into A (a,b,c)
values(value-a,value-b,value-c)
into B(d,e,f)
values(value-d,value-e,value-f)
select value-a,value-b,value-c,value-d,value-e,value-f
from TableX
where ...;
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答