dbTalk Databases Forums  

unable to insert data and time values into table

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss unable to insert data and time values into table in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
narayana
 
Posts: n/a

Default unable to insert data and time values into table - 05-22-2006 , 03:29 PM






hi gurus,
I am kid at DB2 .problem is I am unable to insert values of time and
date datatype fields into tables .default date datatype is taking
4bytes lenght so I am unable to insert date value into it .Is there any
way or else I have to do any modifications to my table. plz give some
hint.


Reply With Quote
  #2  
Old   
Jack Miller
 
Posts: n/a

Default Re: unable to insert data and time values into table - 05-22-2006 , 04:16 PM






What query are you typing and which mechanism are you using to connect
to the database (ODBC, JDBC or other)


narayana wrote:
Quote:
hi gurus,
I am kid at DB2 .problem is I am unable to insert values of time and
date datatype fields into tables .default date datatype is taking
4bytes lenght so I am unable to insert date value into it .Is there any
way or else I have to do any modifications to my table. plz give some
hint.


Reply With Quote
  #3  
Old   
narayana
 
Posts: n/a

Default Re: unable to insert data and time values into table - 05-23-2006 , 07:52 AM



I am using jdbc .db2 clp it working fine but where as from control
center I am unable to insert date and time values to that table.


Reply With Quote
  #4  
Old   
rAinDeEr
 
Posts: n/a

Default Re: unable to insert data and time values into table - 05-23-2006 , 09:16 AM



hi ,

insert date as '2006-05-20'

rainDeeR


Reply With Quote
  #5  
Old   
rAinDeEr
 
Posts: n/a

Default Re: unable to insert data and time values into table - 05-23-2006 , 09:20 AM



Hi,

I created a table with time and date and i was able to insert values.

Insert into tariq.test values('12.02.35','2006-05-20')
Hope this helps....

Regards,
RaiNdEeR


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.