ThinkPHPMySQL

thinkphp5 根据条件查询表中多列数据

2018-10-09  本文已影响21人  这真的是一个帅气的名字
        $where = array();
        $where['discount_price']  = ['<',0];
        $where['state'] = 1;
        $list = db('ns_goods')->where($where)->group('goods_id')->field('goods_id,discount_price')->select();;
上一篇下一篇

猜你喜欢

热点阅读