Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old May 22nd, 2006, 09:35 PM
narayana
Guest
 
Posts: n/a
Default unable to insert data and time values into table

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.

  #2  
Old May 22nd, 2006, 10:15 PM
Jack Miller
Guest
 
Posts: n/a
Default Re: unable to insert data and time values into table

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


narayana wrote:[color=blue]
> 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.
>[/color]
  #3  
Old May 23rd, 2006, 01:55 PM
narayana
Guest
 
Posts: n/a
Default Re: unable to insert data and time values into table

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.

  #4  
Old May 23rd, 2006, 03:15 PM
rAinDeEr
Guest
 
Posts: n/a
Default Re: unable to insert data and time values into table

hi ,

insert date as '2006-05-20'

rainDeeR

  #5  
Old May 23rd, 2006, 03:25 PM
rAinDeEr
Guest
 
Posts: n/a
Default Re: unable to insert data and time values into table

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,338 network members.