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 > SQL query output to a CSV file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-28-08, 18:06
dba_udb dba_udb is offline
Registered User
 
Join Date: Mar 2005
Posts: 73
SQL query output to a CSV file

UDB v8.11

All-

How do i send the out put of sql QUERY TO A CSV file. This is an urgent requsst . And any help is appreciated.

thanks
Reply With Quote
  #2 (permalink)  
Old 02-28-08, 21:01
ugrasena ugrasena is offline
Registered User
 
Join Date: Mar 2005
Posts: 40
Try this
Writing to a OutFile from command ine from the c prompt
db2 -z c:/xxx.xls SELECT * FROM tablename
Reply With Quote
  #3 (permalink)  
Old 02-29-08, 03:03
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by dba_udb
UDB v8.11

All-

How do i send the out put of sql QUERY TO A CSV file. This is an urgent requsst . And any help is appreciated.

thanks
Look at the EXPORT command.

Andy
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