Reference MONGODB input Format SQL generator by php_php tutorial

Source: Internet
Author: User
These days refer to MongoDB's incoming parameter format, find ({a:1, $or: {c:1,b:2}}), and write an array of data parsed by this incoming method and output with the analysis data, so that subsequent class use does not know whether the design method is practical, Inside the note may not write the wrong, after all, copy and paste their own also a lot of source code see the attachment, the results of the test data posted here to indicate what I want to do, welcome to the exchange of instructions (put a code is so difficult)

Array
(
[parameters] = = Array
(
[P11] = 1
[P12] = foo
[P13] = 1
[P14] = 3
)

[Into] = T1
[Write] = (' a ' =:p, ' c ' =:p 12)
[detail] = = Array
(
[WHERE] = = Array
(
[C] = 1
[A] = 1
)

)

[Query] = ' c ' =:p and ' a ' =:p 14
[SQL] + UPDATE ' t1 ' c ' =:p and ' a ' =:p SET (' a ' =:p one, ' c ' =:p) WHERE ' c ' =:p and ' a ' =:p 14
)

http://www.bkjia.com/PHPjc/478772.html www.bkjia.com true http://www.bkjia.com/PHPjc/478772.html techarticle these days refer to MongoDB's incoming parameter format, find ({a:1, $or: {c:1,b:2}}), and write a method that parses the data by this incoming method and outputs an array with analysis data so that ...

  • 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.