×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I was trying out the IFSDIR User-Defined Table Function developed by
Michael Sansoterra
(
http://www.systeminetwork.com/artarchive/17851/index.html) and Scott
Klement
(
http://www.systeminetwork.com/artarchive/newsletter/w/1001/n/5012/i/6552/a/54760/A_UDTF_For_IFS_Directories.html)
and it works great (thanks Scott & Michael!) for a single directory.
[It would be really nice if it recursed sub directories, so you could
use it to get the total size of a directory and all its subdirectories]
I figured it would be interesting to use it to show all the files in all
the 1st-level subdirectories of a given directory, e.g.
with x as
(select * from table(IFSDIR('/home')) as y
where y.TYPE = '*DIR')
select * from table(IFSDIR(x.filename)) as z
but I got this error:
*Column qualifier or table X undefined.*
So I tried
with x as
(select * from table(IFSDIR('/home')) as y
where y.TYPE = '*DIR')
select * from x
and it worked fine.
Anyone have any idea why the former didn't work?
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <
mailto:pdow@xxxxxxxxxxxxxxx> /
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.