MySql教程

mysql批量修改

本文主要是介绍mysql批量修改,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 

SELECT * FROM `zjhj_bd_goods_warehouse` WHERE mall_id='5' and is_delete='0'


SELECT * FROM `zjhj_bd_goods` WHERE mall_id='5' and is_delete='0' and goods_warehouse_id='524' 




SELECT * FROM `zjhj_bd_goods_attr` 


SELECT * FROM `zjhj_bd_goods_warehouse` WHERE mall_id='5' and is_delete='0'

SELECT * FROM `zjhj_bd_mall_goods` WHERE mall_id='5' and 

SELECT * FROM `zjhj_bd_goods_attr` WHERE goods_id='524' 

update zjhj_bd_goods_attr set price = price + 30 WHERE goods_id='524' 


[{"attr_group_id":1,"attr_group_name":"尺寸","attr_list":[
{"attr_id":1,"attr_name":"8寸(适合2-4人)代写贺卡需备注","pic_url":""},
{"attr_id":2,"attr_name":"10寸(适合5-7人)","pic_url":""},
{"attr_id":3,"attr_name":"12寸适合(8-10人)","pic_url":""},
{"attr_id":4,"attr_name":"14寸适合(10-14人)","pic_url":""},
{"attr_id":5,"attr_name":"16寸适合(15-18人)","pic_url":""}]}]

  

这篇关于mysql批量修改的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!