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:MySQL 触发器


下一篇:MySQL:MySQL 存储过程