mysql大数据表加字段改名
select count(0) from product_detection
select count(0) from product_detection_latest
create table tmp like product_detection;
insert into product_detection_latest
select a.id, a.product_id, a.title, a.image_url, a.item_url, a.price, a.rating, a.sub_category,
a.reviews_count, a.review_change, a.rank_number, a.country, a.brand, a.source, a.tag, a.category,
a.create_time, a.reviews_count_latest, a.rating_latest, a.first_review_day, a.latest_review_day,
a.period, a.base, a.review_score,a.nn_socre,a.ins_sim_score,a.ins_engagemt_score,a.unit
from product_detection a join product_lastest b on a.product_id=b.product_id and a.id=b.id ;
rename table goods to goods_bak; rename table tmp to goods;
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · docker定时任务Mysql脚本
- · docker安装mysql8注意事项
- · .NET8 Mysql SSL error
- · 定时备份docker中的mysql
- · docker-compose通过容器名连接mysql
- · unity3d mysql error: The given key was not present in the dictionary.
- · MySQL 批量修改数据表编码及字符集
- · Your database must use ‘READ-COMMITTED’ as the default isolation level.
- · MySQL-InnoDB存储引擎
- · 将数据从mysql迁移到clickhouse
- · mysql关于索引那些事儿
- · mysql大数据表添加字段