COLUMN_JSON
Convert dynamic columns to JSON. This function returns a JSON string representation of the data stored in a dynamic column blob.
Syntax
COLUMN_JSON(dyncol_blob)Description
Example
SELECT item_name, COLUMN_JSON(dynamic_cols) FROM assets;
+-----------------+----------------------------------------+
| item_name | COLUMN_JSON(dynamic_cols) |
+-----------------+----------------------------------------+
| MariaDB T-shirt | {"size":"XL","color":"blue"} |
| Thinkpad Laptop | {"color":"black","warranty":"3 years"} |
+-----------------+----------------------------------------+Last updated
Was this helpful?

