That specification "Indicates the column is not visible in SQL statements
unless it is referred to explicitly by name. For example, SELECT * does not
include any hidden columns in the result." Perhaps the DS defined with the
external TABLE honors [or should honor] that?
But if he defines an external data structure all columns (implicitly hidden
or not are included) and when reading a record with SELECT * you'll get huge
Again another reason why columns should be explicitly listed.
Mit freundlichen Grüßen / Best regards
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von CRPence
Gesendet: Friday, 15.3 2013 18:06
Betreff: Re: SQL Table with ROW CHANGE TIMESTAMP
On 15 Mar 2013 07:54, Anderson, Kurt wrote:
Just got back from the WMCPA conference and I'm using today to apply
some of the learning that occurred earlier this week.
One thing I learned about was being able to have my SQL table
automatically set the last change timestamp field w/o me doing it.
ChgDate TIMESTAMP FOR EACH ROW ON UPDATE AS ROW CHANGE TIMESTAMP NOT
I added some records via DBU and saw that this worked great.
Unfortunately this seems to be de-simplifying the embedded SQL in my
I had Insert into BillAgentP Values(:ds_Insert); Where ds_Insert is a
Qualified DS defined like the file. But now that doesn't work b/c it
doesn't like that I'm updating ChgDate. Is my only recourse to list
out all the fields except for ChgDate?
I'm at IBM i 7.1
And if that column is defined using IMPLICITLY HIDDEN specification on
the ROW CHANGE TIMESTAMP? That specification "Indicates the column is not
visible in SQL statements unless it is referred to explicitly by name. For
example, SELECT * does not include any hidden columns in the result."
Perhaps the DS defined with the external TABLE honors [or should honor]
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l