[MDEV-31466] Add optional correlation column list for derived tables Created: 2023-06-13 Updated: 2024-02-06 |
|
| Status: | In Progress |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Temporary, Data Manipulation - Insert |
| Fix Version/s: | 11.5 |
| Type: | Task | Priority: | Critical |
| Reporter: | Rex Johnston | Assignee: | Rex Johnston |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In MariaDB for table value constructors, the column names are taken from the value of the first set of results
There is no mechanism to assign them names. The SQL standard tells us that the column name(s) for a table value expression is "implementation dependent". PostgreSQL can (re)assign column names in the derived table name syntax element.
This is similar to the syntax used in the specification of a CTE, i.e.
The SQL (2016) Foundation document, (starting at page 406) describes this syntax for the <table primary> syntax element.
The MDEV covers the implementation of this for MariaDB. |
| Comments |
| Comment by Sergei Golubchik [ 2023-06-27 ] |
|
what "popular alternative database"? What does the standard say? |