当前位置: 代码迷 >> 综合 >> mysql-查询并且添加数据
  详细解决方案

mysql-查询并且添加数据

热度:80   发布时间:2023-09-27 23:56:51.0


INSERT INTO 表 (yuesao_openid, user_openid,time) SELECT   xxxx as yuesao_id,id,'2017-11-23 10:09:24'as time
 from 表 LIMIT 20;   查询 20条数据 A表  并且给字段赋值 添加 到B 表


INSERT INTO t_belong_yuesao_vote (yuesao_id, user_openid,time)SELECT 'xxxxxx'as yuesao_id,openid,'2017-11-23 10:09:24'as timefrom t_user_info LIMIT 20;


  相关解决方案