您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

mysql从另一张获取数据的方法_MySQL

2025/11/19 8:21:26发布22次查看
bitscn.com
方法一
create table tmp as select a.id from t_user t join temp a on t.email = a.email;
方法二
insert into t_user (id,username,password,email,user_type,status) select id,replace(email,'@','_'),password,email,'0','0' from temp;
这两个sql都是从另外一张中获取的数据插入了当前表。
本文出自 “乔磊的博客 学习 进步” 博客
bitscn.com
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product