|
I use RUMBA's ODBC driver. I can specify the filename and member name like this:file(member) , my select is select * from file(member) and it works. I do not use JDBC but I am sure the SQL syntax would be the same. Good Luck Giri Gopal -----Original Message----- From: java400-l-admin@midrange.com [mailto:java400-l-admin@midrange.com]On Behalf Of Richards, Etienne (CAP, PTL) Sent: Thursday, January 10, 2002 8:14 AM To: 'java400-l@midrange.com' Subject: RE: SQL multi member If you are talking about a AS/400 physical file with multiple members then you do not have a lot of options. SQL can not be used against a specific member directly. If you query the file then you will only get data from the default member. If you wanted to read from a specific member then your only option is to create an alias over with the physical file and specifying the member of the physical file that you want the alias to point to. Use STRSQL and prompt on "create alias". Etienne -----Original Message----- From: BMIROW@aol.com [mailto:BMIROW@aol.com] Sent: Thursday, January 10, 2002 9:08 AM To: java400-l@midrange.com Subject: SQL multi member Does anyone know how to execute a JDBC SQL statement against a multi member file. Thanks Barry _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l. _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.