码迷,mamicode.com
首页 > 其他好文 > 详细

ecshop 多表删除

时间:2016-05-13 10:31:20      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:

 

$sql = DELETE O, G
            FROM  . $GLOBALS[ecs]->table(delivery_order) .  AS O,  . $GLOBALS[ecs]->table(delivery_goods) .  AS G
            WHERE O.order_id = \‘‘ . $order_id . \‘
            AND O.status = 0
            AND O.delivery_id = G.delivery_id;
    $query = $GLOBALS[db]->query($sql, SILENT);

    if ($query)
    {
        $return_res = 1;
    }

    return $return_res;

 

ecshop 多表删除

标签:

原文地址:http://www.cnblogs.com/wesky/p/5486352.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!