|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
export db 2 data into a text file
I am having some problem with exporting db2 time fields into a excel file as i am doing some of database mirgation.
first, i have exported db2 data into a excel file,and change the time format to read as hh:mm:ss, after that i import them into mysql database. whem i export the time filed (hh:mm:ss) into a excel it become hh.mm.ss,hence, when i import them into mysql database only ss got imported. You help will be much appricated! Regards and thanks. NY |
|
#2
|
||||
|
||||
|
Just a quick question, why are you exporting from db2 to excel and then to mysql.
Why not just export to a file then import that file to mysql. This is more of an excel problem because it munges the field. |
|
#3
|
|||
|
|||
|
date format different
Quote:
actually, I exported the db2 into a txt file and open it using excel to conver the date and time column as db2 date format is dd-mm-yyyy whereas mysql yyyy-dd-mm. Thanks and regards. |
|
#4
|
||||
|
||||
|
Use export options
Use the modified by command for export. Try dateiso or timestampformat=. See this doc: http://publib.boulder.ibm.com/infoc...re/r0008303.htm
|
|
#5
|
|||
|
|||
|
Thanks
Quote:
Thanks for your reply. |
![]() |
| Viewing: Dev Shed Forums > Databases > DB2 Development > export db 2 data into a text file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|