× 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.



Wilt, Charles wrote:
<<SNIP>>
/* Create table. v6r1 */
CREATE TABLE to-file LIKE from-file
RCDFMT rcdfmt-name ;

ALTER TABLE to-file ADD COLUMN H3_CREATED_BY FOR COLUMN H3CRTUSER VARCHAR(18) NOT NULL IMPLICITLY HIDDEN DEFAULT USER;

ALTER TABLE to-file ADD COLUMN H3_CREATED_TIMESTAMP FOR COLUMN H3CRTTIMST TIMESTAMP NOT NULL IMPLICITLY HIDDEN DEFAULT CURRENT_TIMESTAMP;

<<SNIP>>

I assume there is no requirement to add the two fields separately; i.e. that there is no restriction with IMPLICITLY HIDDEN on ADD COLUMN?

If not, then FWiW, like for any ALTER, the best approach is to combine the maximum amount of alter activity into one request. Two ALTER requests is a very poor choice when data exists, since the data will be copied for each request. Of course the example was with an empty table, so there is no data movement to be concerned with.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.