Some basic datatypes and functions in oracle compatibility mode do not work (MDEV-19162)

[MDEV-20020] sql_mode="oracle" does not support "rownum" pseudo column Created: 2019-07-10  Updated: 2020-11-02

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Technical task Priority: Major
Reporter: Faisal Saeed (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Compatibility

Issue Links:
Blocks
is blocked by MDEV-24089 support oracle syntax: rownum Closed

 Description   

This is a pseudo column available in the SELECT query. Generates a running row number something like the window function "ROW_NUMBER() OVER()" This can be used in the select clause to list the running row numbers or used in the WHERE clause to limit the output rows just like in MariaDB LIMIT.

Oracle: SELECT * FROM TAB WHERE ROWNUM <= 10;
MariaDB: SELECT * FROM TAB LIMIT 10;

Oracle Doc: https://docs.oracle.com/cd/B28359_01/server.111/b28286/pseudocolumns009.htm#SQLRF00255



 Comments   
Comment by pickup li [ 2020-08-31 ]

rownum is used very frequently on Oracle, can this function be added in the next version

Generated at Thu Feb 08 08:56:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.