[MDEV-7994] Needed SQL statement which converted a delimited string into a table Created: 2015-04-14 Updated: 2015-10-31 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Mikhail Gavrilov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Hi! Sorry I couldn't select here issue type 'New Feature'. Here a lot of useless string functions are not clear even in some cases it is necessary for example MAKE_SET, SPACE or EXPORT_SET, but none of which are allowed to make a delimited string table.
makes the identity thing as
the same can be obtained as
If the SQL statement would be that converted a delimited string into a table as I show below would be better
could provide a virtual table from any line
and continue to use it in a cursor, etc.
|
| Comments |
| Comment by Mikhail Gavrilov [ 2015-04-14 ] |
|
Also it would be more useful than COLUMN_LIST SELECT COLUMN_LIST(@test); because get list of columns in table form which can be easily joined or converted to string with delimiter. |
| Comment by Sergei Golubchik [ 2015-04-15 ] |
|
This requires MariaDB to support functions that can return a table. We don't support it now, it's MDEV-5199 which is not done yet. I'm marking this task as "blocked by" MDEV-5199 — when we implement table functions, we can implement this your request easily. |