mercredi 27 juillet 2016

how can I search json in mysql via medoo liberary?

I have a filed (section) in a mysql DB with this json content:

{"section2":"303","section1":"302","section0":"301"}

I use meedo lib DB.

how can I search secion1,section2,section3 in DB?

$database->select('Article', "*",[
                            "AND" => [
                            "section" => ?
                            ]
                       ])

                   )

Aucun commentaire:

Enregistrer un commentaire