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

R

robertchen117

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
 
C

ccc31807

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
 
X

xhoster

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,684
Latest member
sparada

Latest Threads

Top