Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > SQL Language
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 6th, 2007, 06:39 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default want to create a xls file

Hi,
I am writing a unix script through which I want to run a sql query and stores it's output in xls file.
I tried to create csv file (through spooling)but this is having a problem b'coz one of my field is having comma in itself.so if i'll make colsep as comma it will also break my field in to two parts.Thats why I want to create a xls file directly.I am using sqlplus command in my unix script.
Please help me out
Reply With Quote
  #2 (permalink)  
Old March 25th, 2007, 11:16 PM
Authorized User
 
Join Date: Aug 2004
Location: Kathmandu, , Nepal.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bishnupokhrel Send a message via Yahoo to bishnupokhrel
Default

Hi vinita24,

you can create csv file like this , put double quote around your data. It will not break.

"AAA,AAA","21,21","BBBBBB"

hope this works.



Regards
Bishnu Pokharel
bishnu.pokharel@gmail.com
http://www.bishnupokharel.com.np/
Reply With Quote
  #3 (permalink)  
Old March 27th, 2007, 11:27 AM
Friend of Wrox
 
Join Date: Aug 2004
Location: Orange County, CA, USA.
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you also might want to check out some Perl stuff some people wrote, with perl scripts allows you to write directly to an xls file.


Reply With Quote
Reply


Thread Tools
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 Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! how to read the file of *.xls hussar91404 C# 4 April 25th, 2014 03:41 AM
Reading xls file balesh.mind ASP.NET 2.0 Professional 1 August 27th, 2007 11:54 PM
convert PDF file to XLS for Excel crmpicco Classic ASP Basics 2 November 30th, 2005 04:51 AM
Upload .xls file to SQL Server bubberz ASP.NET 1.0 and 1.1 Basics 2 August 22nd, 2005 05:20 AM
problem openning huge xls file helmekki Excel VBA 3 October 5th, 2004 04:43 AM



All times are GMT -4. The time now is 12:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.