1
select userlist.userid,userlist.username,userinformation.address from userlist left join userinformation on userlist.userid=userinformation.userid
然后,再把查询数据,插入到新表即可
1
insert into `user` select userlist.userid,userlist.username,userinformation.address from userlist left join userinformation on userlist.userid=userinformation.userid
$result = mysql_query($sql)while ($row=mysql_fetch_row($result))
{
$data[]=$row
}
print_r($data)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)