This article analyzes the coherent operation usage of thinkphp with examples. Share it with everyone for your reference. The specific analysis is as follows:
1. Commonly used consecutive operations, which can be used consecutively but in no particular order. There must be methods select, update, delete, and find at the end
1.where: Help us set query conditions
2.order: Sort the results
6.group: Group
7.having: related to grouping
2. Supplement
alias is used to define an alias for the current data table string
page is used to query paging (will be converted to limit internally) strings and numbers
join* is used to support joins for queries, strings and arrays
union* for union support for queries strings, arrays and objects
distinct distinct support for queries boolean
lock Lock mechanism for database Boolean value
cache is used to query cache and supports multiple parameters (described in detail in the cache section later)
relation is used for related queries (requires related model extension support) string
validate is used for automatic data verification array
auto is used for data auto-complete array
filter is used for data filtering string
scope* is used for named scope strings and arrays
I hope this article will be helpful to everyone’s ThinkPHP framework programming.