标签:成功 select 状态 信息 update pen _id opencart option
use doljoee;
---------------------------修改订单状态----------------------------
select order_id,order_status_id from oc_order;
select * from oc_order_status;(5是成功订单)
UPDATE `oc_order` SET `order_status_id` = ‘5‘ WHERE `order_id` =2147483647;
---------------------------修改订单号(注:order_id是int 且位数有限,导致不能含字母和年月日)----------------------------
select * from oc_order where `order_id` =15;
select * from oc_order_option where `order_id` =15;
select * from oc_order_product where `order_id` =15;
select * from oc_order_total where `order_id` =15;
UPDATE `oc_order` SET `order_id` = ‘2009200004281665‘ WHERE `order_id` =0;
UPDATE `oc_order_option` SET `order_id` = ‘2009200004281665‘ WHERE `order_id` =0;
UPDATE `oc_order_product` SET `order_id` = ‘2009200004281665‘ WHERE `order_id` =0;
UPDATE `oc_order_total` SET `order_id` = ‘2009200004281665‘ WHERE `order_id` =0;
UPDATE `oc_order` SET `order_id` = ‘BR2009200004281665‘ WHERE `order_id` =15;
UPDATE `oc_order_option` SET `order_id` = ‘BR2009200004281665‘ WHERE `order_id` =15;
UPDATE `oc_order_product` SET `order_id` = ‘BR2009200004281665‘ WHERE `order_id` =15;
UPDATE `oc_order_total` SET `order_id` = ‘BR2009200004281665‘ WHERE `order_id` =15;
UPDATE `oc_order` SET `order_id` = ‘BR2009200118063917‘ WHERE `oc_order`.`order_id` =16;
select * from oc_order where `order_id` =15;
标签:成功 select 状态 信息 update pen _id opencart option
原文地址:https://www.cnblogs.com/alex-13/p/13723527.html