Mysql中从一张表中的数据添加到另一张表

A为原表  B为要加入的表
$sql="insert into B select * from A where id=$id";
posted @ 2018-07-14 10:57  PHP小媛  阅读(1333)  评论(0编辑  收藏  举报