[MDEV-16901] Implement an optional list of column names with the derived table name Created: 2018-08-05 Updated: 2023-11-30 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Parser |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major |
| Reporter: | Galina Shalygina (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Unresolved | Votes: | 11 |
| Labels: | None | ||
| Description |
|
SQL Standard says that with the derived table name an optional list of column names used in this derived table can also be specified. This feature is not implemented in MariaDB. The usage of this feature:
The most interesting case of using this feature will be with the derived table defined with a table value constructor. In this example there is no possibility to come at 'tab' columns directly.
Using the suggested feature it becomes possible:
|
| Comments |
| Comment by Yitzchak [ 2021-08-23 ] |
|
Re "no possibility", you can always do: ``` The naming the columns after the first row's value seems useless; mysql uses column_0, column_1, etc.; it would be great if that could be changed to match mysql. |