In the past few days, I have referred to MongoDB’s incoming parameter format find({a:1,$or:{c:1,b:2}}) and wrote a data processing method based on this incoming method. Parse and output an array with analysis data for subsequent class use. I don’t know if this design method is practical. The comments inside may be wrong. After all, I copy and paste my own and there are many source codes. See the attachment. The test data is posted here. The results are so that I can show what I want to do. Welcome to share and give me advice (why is it so difficult to post a code)
Array
(
[parameters] => Array
(
[p11] => 1
[p12] => foo
[p13] => ; 1
‐
[into] => t1
[detail] => Array
(
( )
)
[query] => `c` = :p13 and `a` = :p14
[sql] => UPDATE `t1` `c` = :p13 and `a` = :p14 SET ( `a`=:p11,`c`=:p12) WHERE `c` = :p13 and `a` = :p14
)
http://www.bkjia.com/PHPjc/478772.html
true