MySql将一张表的数据插入另外一张表

表table_a,表table_b,现在要将b表中的几个字段值插入表a,且两张表字段名字不同

insert into table_a(user, pwd, score) select username user, password pwd, score from table_b.

猜你喜欢

转载自blog.csdn.net/yangfengjueqi/article/details/79989257