Yii2怎么执行原生sql语句查询
2017-09-13
展开全部
Database Exception – yii\db\Exception
PDOStatement::fetchAll() expects parameter 1 to be long, string given
The SQL being executed was: select * from hd_article where aid<31 order by aid desc limit 1
↵
Caused by: yii\base\ErrorException
PDOStatement::fetchAll() expects parameter 1 to be long, string given
in D:\WWW\web\vendor\yiisoft\yii2\db\Command.php at line 848
PDOStatement::fetchAll() expects parameter 1 to be long, string given
The SQL being executed was: select * from hd_article where aid<31 order by aid desc limit 1
↵
Caused by: yii\base\ErrorException
PDOStatement::fetchAll() expects parameter 1 to be long, string given
in D:\WWW\web\vendor\yiisoft\yii2\db\Command.php at line 848
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |