Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-19782

sql_mode=ORACLE: ROWNUM

    XMLWordPrintable

Details

    Description

      In the ORACLE-Mode, the ROWNUM-Variable doesn't work.

      e.g:

      select rownum, table_schema, table_name from information_schema.tables;
      

      I get the errror:
      ERROR 1054 (42S22): Unknown column 'rownum' in 'field list'

      One possible solution would be eg:

      select cast(@rn := @rn+1 as integer) as ROWNUM
            ,table_schema, table_name
        from information_schema.tables, (select @rn:=0) as r1;
      

      Attachments

        Issue Links

          Activity

            People

              ralf.gebhardt Ralf Gebhardt
              wodrsoftware Wolfgang Draxler
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.