TP Framework Query Add

Source: Internet
Author: User
1 Methods of coherent operation: the object $info=m ("info") that makes the model of an info table;  Using the M method $info->select ();  The Select method returns all data $info->where ("Code= ' P001"), and/or add conditions, $info->table ("Nation")->select ();//tables to toggle Queries The object of the info table can be implemented by the Table Method Nation table $info->field ("code")->select;  Check the specified field $info->distinct (true)->select (); Go to heavy $attr = $car->find ();     According to the primary key to take a piece of data, do not write the primary key value by default returns the first $attr = $car->select ("c001,c002");   Returns a two-dimensional array based on the primary key value query 2. Automatic collection of form $info=m ("info");   Model Object $info->create ();  Automatically collects the form and creates data $info->add ();    Call the Add method

  

TP Framework Query Add

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.