TP的一條sql語句(子查詢)

$model=M(''); $model->table(C('DB_PREFIX').'goods as g') ->join(C('DB_PREFIX').'orders as o on o.goods_id=g.id') ->where('o.user_id='.$userid.' and o.state=1 and o.id not in(select c.order
相關文章
相關標籤/搜索