发布网友
共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