mysql不支持select into解决_MySQL
程序员文章站
2022-05-20 12:58:28
...
bitsCN.com
bitsCN.com
mysql不支持select into解决
替代方案
insert into newTableName(column1,column2) select * from oldTableNameINSERT INTO `aw_daily_call_task`(tenantId,sub_product_name, call_type,call_date,expire_date,username,customer_type,start_date,end_date,budget,product_type) SELECT t1.`tenant_id` as tenantId, t1.`sub_product_name`, 1 as call_type, t1.`active_date` as call_date, DATE_ADD(t1.`active_date`,INTERVAL 1 DAY) as expire_date, t1.`link_man` as username, 1 as customer_type, t1.`active_date` as start_date, DATE_ADD(t1.`active_date`,INTERVAL t1.`remain_day` DAY) as end_date, 1 as budget, t1.`product_type` FROM `aw_old_products` t1
bitsCN.com
上一篇: PHP开启Gzip页面没有输出的解决方法
下一篇: sql2005 远程连接问题解决方法
推荐阅读
-
解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
-
mysql用户自定义函数实例与部分问题解决方法
-
MySQL之——提示"mysql deamon failed to start"错误的解决方法
-
iis php mysql php mysql Errcode: 28 终极解决方法
-
PHP错误Warning:mysql_query()解决方法_PHP
-
select-MySQL中触发器的创建问题
-
mysql 1418无法创建函数的解决方法_MySQL
-
MySQL数据库中的安全解决方案
-
MySQL中与浮点比较有关问题的解决_MySQL
-
php 环境本地用ip连接mysql响应快,用localhost连接慢的解决