【发布时间】:2015-01-24 05:52:06
【问题描述】:
我想显示存储在数据库表中的数据量 Laravel v 4.2.0 但我在使用函数 count() 时遇到问题。这是我的代码:
$total = DB::select("select count(*) from rents left join operators on operators.code = rents.code where (operators.code is null) and rents.booking = 'N'");
echo $total;
消息错误说:
Syntax error or access violation
谁能帮帮我?
【问题讨论】: