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 > how to avoid the double quotes while Exporting the file in db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-06-11, 02:17
nsrinusetty nsrinusetty is offline
Registered User
 
Join Date: Jul 2011
Posts: 4
how to avoid the double quotes while Exporting the file in db2

HI,

i used the below query in db2 and the result in single coulmn like
102|xxxx|30
103|yyyy|40
after get the above results, i tried to export the file as one.txt. after getting the one.txt files..the content of file like :

"102|xxxx|30"
"103|yyyy|40"

each start and end line i got the double quotes. i want to void the double quotes while export the data into file.


Please help on that issue.



select ' '||COALESCE(employeid,'') || '|'||COALESCE(emaployeename,'') ||'|'|| COALESCE(age,'')||' ' from employee



thanks in advance
Reply With Quote
  #2 (permalink)  
Old 07-06-11, 03:42
tonkuma tonkuma is online now
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
Specify "MODIFIED BY nochardel" in your export command.
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