Let me summarize what I learned.
method to get the data primary key: $goods _model-GETPK ();
Instantiate a data table two methods new Model (); M () Shortcut method takes only one memory at a time and the first method increases memory storage every time
Query () Gets the result of the search execute () gets the number of rows affected
The D () method is used to get the custom model, the D () function is executed in order to find the custom model first when the file name and class name conform to the rule, execute the custom model, if there is a non-conforming lookup table name is instantiated, if not match the table name returns false
Consistent operation
Field () is the display range, where () is the value condition: with an array or an object as the condition, limit () is the number of values, order (para desc) is sorted, group () is automatically sorted by field grouping, having () another value condition, table ( Tbname) for cross-table values, table (db.tbname) takes values across the database, defines the array $cont[' para ']=array (' like ', '%a% '), generates an array condition control sql,sum () sum, avg () average, Count () to find the number
http://www.bkjia.com/PHPjc/477475.html www.bkjia.com true http://www.bkjia.com/PHPjc/477475.html techarticle Let me summarize what I've learned. method to get the data primary key: $goods _MODEL-GETPK (); Instantiate data table two methods new model (); The M () shortcut method uses only one memory at a time ...