niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » IBM DB2
loading a timestamp
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Serge Rielau
*nix forums Guru


Joined: 29 Apr 2005
Posts: 1583

PostPosted: Fri Feb 18, 2005 1:15 pm    Post subject: Re: loading a timestamp Reply with quote

JS wrote:
Quote:
I have a del file with timestamp format as: Jan 1 1995 12:00AM
I am trying to load this as:
modified by timestampformat "MMM/D/YYYY HH:MM TT"
but DB2 will not accept it. I have tried various combinations of the
modifier but no luck so far. Does anybody know the correct syntax to
load this value?
Many thanks if you do
There are a bunch of useful date functions delivered as part of MTK

(which is free).
http://www-306.ibm.com/software/data/db2/migration/mtk/

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Back to top
Tonkuma
*nix forums Guru Wannabe


Joined: 07 Jun 2005
Posts: 178

PostPosted: Fri Feb 18, 2005 1:06 pm    Post subject: Re: loading a timestamp Reply with quote

One idea is to load the timestamp as chars. Then reformat and put it
into timestamp column using TO_DATE UDF in "Sample UDFs for Migration"
http://www-106.ibm.com/developerworks/db2/library/samples/db2/0205udfs/index.html
Back to top
fyi85@hotmail.com
*nix forums beginner


Joined: 08 Jun 2005
Posts: 19

PostPosted: Thu Feb 17, 2005 9:23 pm    Post subject: loading a timestamp Reply with quote

I have a del file with timestamp format as: Jan 1 1995 12:00AM
I am trying to load this as:
modified by timestampformat "MMM/D/YYYY HH:MM TT"
but DB2 will not accept it. I have tried various combinations of the
modifier but no luck so far. Does anybody know the correct syntax to
load this value?
Many thanks if you do
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Wed Jan 07, 2009 6:33 pm | All times are GMT
navigation Forum index » Databases » IBM DB2
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts timestamp and calculations. Thor Tall PostgreSQL 2 Thu Jul 20, 2006 9:16 am
No new posts problem loading DSO modules Mauro Apache 5 Thu Jul 20, 2006 8:12 am
No new posts Weird gibberish when loading a gif in Firefox, but it's f... Edric Apache 9 Wed Jul 19, 2006 10:55 pm
No new posts shared objects cannot be overwritten even though the proc... prashantarane@gmail.com AIX 3 Wed Jul 19, 2006 6:33 am
No new posts loading 2 files into oracle using sql loader pawan_test Server 2 Sun Jul 16, 2006 8:49 pm

School Girl Costumes | Bankruptcy | Dominios | Debt Consolidation | Comprar vivienda Denia
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1976s ][ Queries: 20 (0.1054s) ][ GZIP on - Debug on ]