Phalcon 2.1.0 executeQuery() - 子查询

时间:2016-04-24 11:25:59

标签: php mysql subquery phalcon

$phql = "SELECT t1.* FROM (SELECT u.* FROM \App\Models\User as u) as t1";
$modelsManager = new \Phalcon\Mvc\Model\Manager();
$modelsManager->setDI($this->getDi());
$query = $modelsManager->executeQuery($phql);
  

语法错误,意外令牌(靠近'SELECT u。* FROM   \ app \ Models \ User as u)as t1',解析时:SELECT t1。* FROM   (SELECT u。* FROM \ App \ Models \ User as u)as t1(62)

有什么问题?

0 个答案:

没有答案