mysql语句 特定ID范围 替换、添加数据

update wp_posts set post_author=REPLACE (post_author,'3','2')  指定位置替换数据 3替换成2

update wp_posts set post_content=CONCAT('数据',post_content,)    特定位置添加

update wp_posts set post_content=CONCAT('数据',post_content) where id>=3927 and id<=5000 特定范围位置添加

update wp_posts set post_content=CONCAT(post_content,'数据') where id>=3927 and id<=5000    特定范围位置添加

00

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注