Active Record Query Interface 数据查询接口(界面)

Posted Mr-chen

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Active Record Query Interface 数据查询接口(界面)相关的知识,希望对你有一定的参考价值。

http://guides.rubyonrails.org/active_record_querying.html

 

This guide covers different ways to retrieve data from the database using Active Record.

After reading this guide, you will know:

?How to find records using a variety of methods and conditions.

?How to specify the order, retrieved attributes,grouping, and other properties of the found records.

? How to use eager loading(预先积极加载) to reduce the number of database queries needed for data retrieval.

? How to use dynamic finder methods.

? How to use method chaining to use multiple Active Record methods together. 

? How to check for the existence of particular records

? How to perform to do sth useful or difficult various calculations on Active Record models.

? How to run EXPLAIN on relations.(如何在关联上跑explain命令) 

 


 

以上是关于Active Record Query Interface 数据查询接口(界面)的主要内容,如果未能解决你的问题,请参考以下文章

CodeIgniter Active Record 与常规查询

Where 子句 CodeIgniter 中的 Active Record 问题

Yii2 : Active Record add Not In condition

在 codeigniter Active Record 中执行和不执行之前的回显查询

Active Record基础

在“要求”中:没有要加载的文件 -- active_record (LoadError)