Skip to content

Function to return number of statements (or even better, the split statements) #8

@ryanschneider

Description

@ryanschneider

Something like this would be very helpful:

> SELECT parse_statements('SELECT 42; SELECT 43;');
┌───────────────────────────────────────────┐
│ parse_statements('SELECT 42; SELECT 43;') │
│               varchar                     │
├───────────────────────────────────────────┤
│ SELECT 42                                 │
│ SELECT 43                                 │
└───────────────────────────────────────────┘

Still useful but less helpful would be a scalar function num_statements that in this example returns 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions