insert一个表的数据到另外一个表

insert into a(real_name,is_main,mobile,password,property_id,create_time) select linkman as real_name,'1',mobile,password,id as property_id,create_time from b

猜你喜欢

转载自www.cnblogs.com/hejianrong/p/12794033.html