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 > Sybase > lost seperator in export to csv

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-11, 12:44
detox detox is offline
Registered User
 
Join Date: Mar 2011
Posts: 6
lost seperator in export to csv

Hello!

I have used this successfully for a few months and all data was enclosed in ' '

For some reason, I have lost the '' around the date. by looking at the query, and then looking at the results, can anyone help?

BEGIN UNLOAD SELECT phone_home_client, creationdate, appt_time, staff_email, - Pastebin.com (If you would like to view there)

BEGIN
UNLOAD
SELECT phone_home_client, creationdate, appt_time, staff_email, crecordnumber, employeesid, appt_agency
FROM outcomes WHERE phone_opt_in = 'Yes' AND specifier1 = 'Referral' AND DATE(creationdate) = DATE(DATEADD(day,2,NOW()))
TO '/srv/phonedialer_out/phase2sys1.csv';
END


'(252) 947-0261',2011-06-30 12:24:41.976,'9:30 am','sklund@coastalhorizons.org','COOL010180','KLU NSTEV0508','Tracie''s Really bad place'



Thanks
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