If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > User Maintained materialized table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-03-04, 03:51
epyfox epyfox is offline
Registered User
 
Join Date: Sep 2004
Posts: 2
User Maintained materialized table

Hello,

I was wondering if anybody could help me with defining a refreshable, user-maintained materialized table.

The documentation states that it is possible to update an user-defined materilized table "by using the LOAD utility, the INSERT, UPDATE, and DELETE statements, as well as the REFRESH TABLE statement".

But when I use the "refresh table"-statements I get the message:
"SQL0159N The statement references "DB2.TESTING1" which
identifies a(n) "USER MAINTAINED SUMMARY TABLE" rather than
a(n) "SUMMARY TABLE".

I have defined the base table as:
CREATE TABLE testing (
id int NOT NULL,
name varchar(20)
);

And the materialized table as:
CREATE TABLE testing1 AS
(
SELECT * FROM testing
)
DATA INITIALLY DEFERRED
REFRESH DEFERRED
MAINTAINED BY USER;

Thanks you very much,

Erol
Reply With Quote
  #2 (permalink)  
Old 09-03-04, 05:24
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Haven't used this feature . but appears from the doc it was introduced only in FP 7 .. Possibly a bug ... Please open a PMR with IBM

Cheers
sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 09-03-04, 06:07
epyfox epyfox is offline
Registered User
 
Join Date: Sep 2004
Posts: 2
Thank you. I will do that.

Erol
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On