Skip to content

db2/400 how to use SELECT command in files that have several members? #9412

Answered by JMarkMurphy
lucianoww asked this question in Q&A
Discussion options

You must be logged in to vote

SQL does not support multi member files, directly. That is a DB2 for IBM i database construct. However, there are two solutions. You can spend $$$$$ and get DB2 Multi-system. That treats members as partitions, and then allows you to access those members. Or, you can use an alias to access a single member of a multi-member file.

CREATE OR REPLACE ALIAS alias name FOR table name (member name);

The documentation for this statement is found here: IBM i Knowledge Center

Alas, this is not a dBeaver issue.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LonwoLonwo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #9412 on December 16, 2020 09:22.