奥礼网
新记
mysql语句中如何将数据同时插入到两张表中
mysql语句中如何将数据同时插入到两张表中
如A表中的a,b,c三个字段和B表中的d,e,f三个字段用一句sql语句同时插入,请高手帮忙下
举报该文章
相关建议 2012-04-05
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 ...;
温馨提示:内容为网友见解,仅供参考
当前网址:
https://aolonic.com/aa/n53a534kg.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
Mysql 怎样将一个数据库中表 数据 插入到 另一个数据库...
mysql 如何用一条SQL将一张表里的数据插入到另一张表。
mysql怎么用一条语句给两张表插入数据?
MYSQL同时向两站表中插入数据,要求一条语句,能不能做到
Mysql 怎样将一个数据库中表 数据 插入到 另一个数据库...
mysql怎么将数据添加到两张表的关联表中
sql怎样将一个表中的数据添加到另一个表
怎么用一条sql,将一张表中数据插入到两张表中