Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better VALUES() emulation in Informix using TABLE(MULTISET) #8424

Closed
lukaseder opened this issue Mar 15, 2019 · 0 comments
Closed

Better VALUES() emulation in Informix using TABLE(MULTISET) #8424

lukaseder opened this issue Mar 15, 2019 · 0 comments

Comments

@lukaseder
Copy link
Member

lukaseder commented Mar 15, 2019

In Informix, we can emulate VALUES() using TABLE(SET), e.g.

-- Single column
SELECT a, b
  FROM TABLE (MULTISET {1, 2, 3, 4}) AS t(a);

-- Multi column
SELECT a, b
  FROM TABLE (MULTISET {row(1, 1), row(2, 1), row(3, 2), row(4, 2)}) AS t(a, b);

See also: https://stackoverflow.com/a/43178184/521799

@lukaseder lukaseder added this to the Version 3.12.0 milestone Mar 15, 2019
@lukaseder lukaseder changed the title Better VALUES() emulation in Informix using TABLE(SET) Better VALUES() emulation in Informix using TABLE(MULTISET) Mar 15, 2019
@lukaseder lukaseder changed the title Better VALUES() emulation in Informix using TABLE(MULTISET) Better VALUES() emulation in Informix using TABLE(LIST) Mar 15, 2019
@lukaseder lukaseder changed the title Better VALUES() emulation in Informix using TABLE(LIST) Better VALUES() emulation in Informix using TABLE(MULTISET) Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant