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 > insert into a table from sysibm view but at the same time we have to insert the time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-11, 08:10
thawfii88 thawfii88 is offline
Registered User
 
Join Date: Nov 2011
Posts: 13
insert into a table from sysibm view but at the same time we have to insert the time

Hi Guys,,

can any one help me out ?

i need to insert values from sysibmadm.dbcfg to a table with the current timestamp. previously i had the same columns as the sys view . But i need to insert the timestamp also (where the coulumn was not defined in the view.

Thanks in advance
thawfiii
Reply With Quote
  #2 (permalink)  
Old 11-28-11, 08:36
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
create table xx as sysibmadm.dbcfg with additional column
insert into xx select col1,col2....,current timestamp from sysibmadm.dbcfg
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 11-30-11, 07:24
thawfii88 thawfii88 is offline
Registered User
 
Join Date: Nov 2011
Posts: 13
Thanks a lot
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