count
方法来查询数据的条数。以下是一个简单的示例:,,``php,$count = Db::name('users')>count();,echo $count;,
`,,这个代码片段会输出
users`表中的数据条数。count
方法来查询数据的条数。以下是一个简单的示例:,,``php,$count = Db::name('users')>count();,echo $count;,
`,,这个代码片段会输出
users`表中的数据条数。Powered By Z-BlogPHP 1.7.3
Copyright Your WebSite.Some Rights Reserved.