Skip to content

Add ROWNUM() function #95

@agershun

Description

@agershun

Suppose i have a table without a unique id. For example

    SELECT some_number, some_text FROM table;

some_number some_text

    42          "Test"
    84          "Another Test"

Now i want Alasql to additionally return the rownumber of every tuple:

    SELECT ROWNUM(), some_number, some_text FROM table;
    rownum some_number some_text
    0      42          "Test"
    1      84          "Another Test"

Do have a suggestion for me how to solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions