Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Extacting the data from Oracle and writing in an Excel sheet

Thread Tools

Extacting the data from Oracle and writing in an Excel sheet

Posts: n/a
Hi ,
Here is the situation:
I am creating a web page from a perl script.. this web page has
checkboxes which are from an oracle table - From this page I am
creating sql query and passing the param to a cgi file - I verified
the SQL statement and it is correct -- now here is my problem - I am
trying to write the data extracted from the table and writing it to an
excel sheet.
The SQL query is like :
SELECT $cols from Table
here the $cols is atleast one and could be more....(depending on the
selection made on the html page

I am using the following:

while ( @name = $sth->fetchrow_array() ) {
$worksheet->write($row,$col++, $name[0]);
Could someone help me with this - and also would appreciate if you
guys can comment on the design of it- what could be more efficent way
to do it ..;.
Perl beginner
Reply With Quote

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
read a excel sheet using aspose.excel sajithkahawatta ASP .Net 3 04-19-2007 02:54 PM
install_driver(Oracle) failed: Can't load 'C:/Perl/site/lib/auto/DBD/Oracle/Oracle.dll' for module DBD::Oracle: load_file:The specified procedure could not be found at C:/Perl/lib/ line 230. Feyruz Perl Misc 4 10-14-2005 06:47 PM
Python-Excel: How to paste selected cells (range) to different location on the same sheet in Excel zxo102 Python 3 08-09-2005 02:41 PM
Urgent!!!!! Problem while exporting data to excel sheet in =?Utf-8?B?U2lsZWVzaA==?= ASP .Net 4 11-05-2004 10:57 PM
Exporting Datagrid's data to an Excel Sheet. ASP .Net 1 10-25-2004 10:24 PM