我无法在此代码中找到错误。
UPDATE order_items o
set (DISCOUNT_AMOUNT) =
select T.maxdiscount
from (select customer_id , o.order_id as order_id, D.product_id as product_id, D.total, E.maxdiscount as maxdiscount
from orders o, (select sum(quantity)as total, order_id, product_id
from order_items
group by order_id, product_id) D,
(select max(discount_amount) as maxdiscount, product_id
from order_items
group by product_id) E
where o.order_id = D.order_id and E.product_id = D.product_id) T
where exists T.order_id = o.order_id and T.product_id = o.product_id;
我得到的信息是:
- 00000 - “缺少表达”
醇>
不知道是什么问题。提前谢谢!
答案 0 :(得分:0)
<?php
/**
* Fix network admin URL to include the "/wp/" base
*
* @see https://core.trac.wordpress.org/ticket/23221
*/
add_filter( 'network_site_url', function( $url, $path, $scheme ){
$urls_to_fix = array(
'/wp-admin/network/',
'/wp-login.php',
'/wp-activate.php',
'/wp-signup.php',
);
foreach( $urls_to_fix as $maybe_fix_url ) {
$fixed_wp_url = '/wp' . $maybe_fix_url;
if ( false !== stripos( $url, $maybe_fix_url )
&& false === stripos( $url, $fixed_wp_url ) ) {
$url = str_replace( $maybe_fix_url, $fixed_wp_url, $url );
}
}
return $url;
}, 10, 3 );