Hi all
I use php with oracle database and i need function like mysql_data_seek
i need to set the result pointer to the row number I need.
can anyone help me?
Thank you
Chripa 5 3052
On 2 Apr 2004 01:00:41 -0800, ch****@volny.cz (chripa) wrote: I use php with oracle database and i need function like mysql_data_seek i need to set the result pointer to the row number I need. can anyone help me?
There isn't one. If you want to go backwards, save your rows in PHP array and
use that instead.
Oracle 9i's OCI supports "Scrollable Cursors" which would allow you to go back
and forth through result sets, rather than the normal and more efficient
forward-only streaming of rows as soon as they're available. But PHP hasn't
implemented support for them, unless it's been added very recently.
The Oracle manual also states:
"Note:
Do not use scrollable cursors unless you require the functionality, because
scrollable cursors use more server resources and can have greater response
times than non-scrollable cursors."
What is the problem that you are trying to solve that requires seeking back
through the result set?
--
Andy Hassall <an**@andyh.co. uk> / Space: disk usage analysis tool http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Andy Hassall <an**@andyh.co. uk> wrote in message news: What is the problem that you are trying to solve that requires seeking back through the result set?
I need to display, for example, ten rows of the result and after
clicking on next display another ten.
I used to do that with mysql using the mysql_data_seek ()
Chripa
In article <35************ **************@ posting.google. com>, ch****@volny.cz (chripa) wrote: I need to display, for example, ten rows of the result and after clicking on next display another ten. I used to do that with mysql using the mysql_data_seek () Chripa
For what it's worth, after writing a few of these 'paging' functions
myself (using MySQL 'LIMIT' in the query), I decided to standardize on
the DB_Pager module from PEAR. It does all the tedious calculation
needed to build next/previous/first/last/intermediate links.
<http://pear.php.net/package/DB_Pager>
JP
--
Sorry, <de*****@cauce. org> is een "spam trap".
E-mail adres is <jpk"at"akamail .com>, waarbij "at" = @.
On 4 Apr 2004 01:53:00 -0800, ch****@volny.cz (chripa) wrote: Andy Hassall <an**@andyh.co. uk> wrote in message news: What is the problem that you are trying to solve that requires seeking back through the result set?
I need to display, for example, ten rows of the result and after clicking on next display another ten. I used to do that with mysql using the mysql_data_seek ()
It sounds like you're fetching the entire result set then only using some of
it - this isn't very efficient.
You should limit the result set to just those records you want. For Oracle,
you could look into using ROWNUM or the ROW_NUMBER() analytic function.
--
Andy Hassall <an**@andyh.co. uk> / Space: disk usage analysis tool http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Andy Hassall <an**@andyh.co. uk> wrote in message news:<d8******* *************** **********@4ax. com>... On 4 Apr 2004 01:53:00 -0800, ch****@volny.cz (chripa) wrote:
Andy Hassall <an**@andyh.co. uk> wrote in message news: What is the problem that you are trying to solve that requires seeking back through the result set?
I need to display, for example, ten rows of the result and after clicking on next display another ten. I used to do that with mysql using the mysql_data_seek ()
It sounds like you're fetching the entire result set then only using some of it - this isn't very efficient.
You should limit the result set to just those records you want. For Oracle, you could look into using ROWNUM or the ROW_NUMBER() analytic function.
If you decide not to use DB_Pager, perhaps the query under the
"and we said..." heading in http://asktom.oracle.com/pls/ask/f?p...127412348064,Y
will be useful. Lower down there is also some interesting
discussion about how to be innaccurate to save time.
-- CJ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jan Bols |
last post by:
I've been trying to install Oracle 8.1.7 on a fresh Mandrake 9.1 O.S for
days, but I'm still not able to get it running. I've tried several
install instructions that I found on the internet but no luck yet.
Here is a short description of what I did so far:
1. I installed the jdk118_v3-glibc-2.1.3.tar in the /usr/local/ dir and
made a symbolic link from /usr/local/java to this
2. I installed all the necessary groups and users (oracle,...
|
by: Bryan Jackson |
last post by:
Greetings,
(I am an Oracle newbie -- been working with SQLServer for quite some
time, however. I'm using Oracle9i and Oracle9i JDeveloper v9.0.3.1
(build 1107) for my programming environment).
I'm trying to get an Oracle function to return XML to a JSP page, but
am having some problems (mostly Oracle errors). Let me start by
showing you what I've done so far.
|
by: Roger Redford |
last post by:
Dear Experts,
I'm attempting to marry a system to an Oracle 817 datbase.
Oracle is my specialty, the back end mainly, so I don't
know much about java or javascript.
The system uses javascript to make ODBC calls to the db.
The particular system I'm working with, will not work
with an Oracle stored procedure I'm told. However, it
|
by: Andrew Arace |
last post by:
I scoured the groups for some hands on code to perform the menial task
of exporting table data from an Access 2000 database to Oracle
database (in this case, it was oracle 8i but i'm assuming this will
work for 9i and even 10g )
No one had what I needed, so I wrote it myself.
I Rule.
This code isn't going for efficiency, and isn't trying to be dynamic.
It doesn't create the table structure in Oracle, that's up to you. (I
|
by: mcbill20 |
last post by:
Hello all. I just installed Oracle 10g developer tools on a machine
running XP Pro and Office XP. Before this I had just the Oracle 9
client installed. I the previous configuration, I was able to access
any of the Oracle tables on another machine but now I am having
problems. Unfortunately, I don't remember the correct syntax for the
ODBC connect string and I am hoping that is my whole problem.
I am trying to connect to an Oracle 9...
| |
by: petro |
last post by:
I am trying to deploy an asp.net application to my web server. My
application uses system.data.oledb to connect to an oracle database. On my
development machine I have the oracle client 10g installed and my application
works. But on the Web server I get the error below. I believe it is because
the Oracle client was not installed on the web server. The web server has
two drives, our techs installed the oracle client on one drive and my...
|
by: BookerW |
last post by:
I am not sure which forum I should post this on, but here is the problem. I
have a front end web application(VB) on asp,net 1.1 framework. Inside of the
code, I have the following lines to connect to the database
If gbSQLServer Then
'sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=c:\w\vgyl\hy.mdb"
gsConnectionString = "Provider=SQLOLEDB;Data Source=frt4;Initial
Catalog=SRMSM;Integrated Security=SSPI"
Else
|
by: bw171 |
last post by:
Hopefully, I frame this problem/question correctly.
I have some code written/updated in visual studio 2003. This code when setup on other machines where I have installed the Oracle 9i client, and the Oracle 9.0 odbc drivers will connect to my oracle database when debugging. I ported the SAME code onto a new machine, installed visual studio 2003, installed IIS, installed the .net frameworks 1 thru 3, but when I am going through the code and...
|
by: =?Utf-8?B?Ym9va2VyQG1ndA==?= |
last post by:
Hopefully, I frame this problem/question correctly.
I have some code written/updated in visual studio 2003. This code when
setup on other machines where I have installed the Oracle 9i client, and the
Oracle 9.0 odbc drivers will connect to my oracle database when debugging. I
ported the SAME code onto a new machine, installed visual studio 2003,
installed IIS, installed the .net frameworks 1 thru 3, but when I am going
through the code...
|
by: colmkav |
last post by:
Can someone tell me how I can access the return value of a function
called from Oracle as opposed to a store proc from oracle? my oracle
function is get_num_dates_varposfile. I am only used to using this
method with store procs that dont return a value back to Access. Hope
this makes sense.
Set Cmd = New Command
With Cmd
Set .ActiveConnection = get_XE_Conn 'makes a connection
Oracle XE
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |