mysql批量update怎么写

发布网友

我来回答

3个回答

懂视网

update shop_service_category a,storecore.store_product  b
set a.out_product_id=b.out_product_id
where a.shopid = b.store_id and a.service_category_id = b.service_category_id
and a.is_deleted =0 and b.is_deleted=0;




本文出自 “118338” 博客,谢绝转载!

批量update_mysql

标签:update

热心网友

首先,要为工号字段user_no建立唯一索引。 SQL语句使用REPLACE代替INSERT即可,例如: REPLACE INTO 表名 (user_no, username, sex) values (123, 'xyz', '女'); 上面语句执行时候会字段判断123的user_no是否存在,存在就替换其名字和性别

热心网友

update pb_threads set uid=1 where uid=0

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com