Click here to get back home

need help on cgi to get multi pages and could sort by column from Oracle

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
need help on cgi to get multi pages and could sort by column from Oracle robertchen117@gmail.com 03-27-2008
Posted by robertchen117@gmail.com on March 27, 2008, 1:55 am
Please log in for more thread options
hi, please help me on:

I want to find like 1000+ records from Oracle database using dbi, but
the view could sort by column and could display by multi pages.

Anyone has this kind of experience?

Robert


Posted by ccc31807 on March 27, 2008, 9:04 am
Please log in for more thread options
On Mar 27, 1:55 am, "robertchen...@gmail.com"
> hi, please help me on:
>
> I want to find like 1000+ records from Oracle database using dbi, but
> the view could sort by column and could display by multi pages.
>
> Anyone has this kind of experience?
>
> Robert


This may actually be an SQL issue. If you are using DBI, you can write
your select statement as follows:

select f1, f2, f3, f4 [etc] from tablename where f1 = 'value' order by
columnname

When you get your statement handler, you can create a while loop and a
counter that will insert a break of an appropriate type when the
counter reaches your parameter and will reset the counter.

CC

Posted by xhoster on March 27, 2008, 11:55 am
Please log in for more thread options
> hi, please help me on:
>
> I want to find like 1000+ records from Oracle database using dbi, but
> the view could sort by column and could display by multi pages.
>
> Anyone has this kind of experience?

Yes. There are a lot of ways to do it, with a lot of accompanying trade
offs.

Are you an Oracle developer that uses Perl, or Perl programmer that uses
Oracle? What is more heavily loaded, the CGI server or the Oracle server?
How efficient is the underlying query that returns the 1000+ records?
Are you using CGI sessions or doing sessionless CGI?

Why multiple pages at all? My browser has a scroll bar--let me use it.

How dynamic is the underlying data? What if a database entry that is
currently being displayed on "page one" gets deleted (and committed) from
the database? Now, when the person changes to "page two", everything has
slid up a row, and what would have been the first thing on page two is
missed altogether, because it now would show up on page one but the user
doesn't know that, because they went to the next page rather than
refreshing the current page.


Xho

--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.

Similar ThreadsPosted
Numerically sort a file on a given column where column is a $var July 17, 2008, 5:29 pm
Obtaining column type in Oracle table November 7, 2007, 7:18 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/DynaLoader.pm line 230. October 14, 2005, 3:08 am
How to sort by multi values? May 24, 2007, 2:21 am
Find Missing Column and Extra Column March 12, 2007, 6:31 am
Building DBD::Oracle with the new Oracle Express product. November 7, 2005, 12:19 pm
how to load a picture to an oracle database with the Load a pictureto Oracle with DBI perl module December 3, 2004, 3:37 pm
can Perl Sort do this, unix sort breaks on it (muliple spaces as demiliter) February 2, 2005, 6:08 pm
Re: A Sort Optimization Technique: decorate-sort-dedecorate August 30, 2006, 4:32 pm
Plotting into XML pages September 9, 2004, 8:59 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap