Jump to content

Mysql to Json


crocodilu2008

Recommended Posts

There are also mysql UDFs for JSON.

 

Do you now mysql UDFs for JSON  is faster than :

SELECT

    CONCAT("[",

          GROUP_CONCAT(

              CONCAT("{username:'",username,"'"),

              CONCAT(",email:'",email),"'}")

          )

    ,"]")

AS json FROM users;

 

?

Link to comment
https://forums.phpfreaks.com/topic/122729-mysql-to-json/#findComment-633810
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.