Skip to content

Return multi-row result as JSON array #3

@dm8tbr

Description

@dm8tbr

This could be useful.
For now I've devised a work around. I print '[' and ']' around the output and the query looks like this:

  SELECT CONCAT(json_object(foo, bar, baz), ',') AS '' FROM quux;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions