Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Default clause in Temporal table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Default clause in Temporal table
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Default attributes for undeclared SYS... Alan Playford PL/I & Assembler 3 Wed Apr 11, 2018 5:18 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us