sql多个表综合(联合)查询,多个关联表关联查询

            $phql = "  select  order_id   from  Orderlogs a where a.created_at >= '$startTime'   ";
            $phql = " select *  from Orders where created_at  >= '$startTime'   and id in ($phql)  ";
            $orders  = $this->modelsManager->executeQuery($phql);

猜你喜欢

转载自blog.csdn.net/qq_25261441/article/details/109542562