IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Default clause in Temporal table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jimy Carol

New User


Joined: 31 Aug 2012
Posts: 25
Location: Australia

PostPosted: Tue Dec 18, 2012 12:27 pm
Reply with quote

Hi All ,

I have a question related to DB2 v 10 for Temporal table . Can a 'WITH DEFAULT ' clause appear for any column of Temporal table or History table ?

my existing code doesnt support WITH DEFAULT ' for any column of temporary and Aux table .

Appreciate for any pointers .

Regards ,

Carol
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Dec 18, 2012 2:51 pm
Reply with quote

works perfectly :
Code:
create table test_temporal4
 ( emplid integer not null
 , empltype varchar(4) with default 'CUST'
 , eff_beg date not null with default
 , eff_end date not null with default '9999-12-30'
 , period business_time (eff_beg,eff_end)
 , primary key (emplid, business_time without overlaps)
 ) ;
 ;
 insert into test_temporal4 (emplid) values (1);
 ;
 select * from test_temporal4
 ;
 drop table test_temporal4
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Unload and Load ISPF Table TSO/ISPF 4
Search our Forums:


Back to Top