Print Thread
Locate for TOracleQuery?
#1433 12/31/00 09:20 AM
Joined: Jul 2000
Posts: 12
Atlanta, GA USA
D
d4jaj1 Offline OP
Member
OP Offline
Member
D
Joined: Jul 2000
Posts: 12
Atlanta, GA USA
Hello,

I have retrieved a bunch of record from an Oracle query I need to locate a specific record by on field and retrieve the value of another field in the same record. If I was using the OracleDataset component I could use the standard Dataset.Locate function.

Is there an equivalent method or function I can use on the OracleQuery component - other than looping through all of the fields in the resultset?

Thanks


----------
Jay
Re: Locate for TOracleQuery?
#1434 01/02/01 07:14 PM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
There is no Locate or SearchRecord equivalent for a TOracleQuery. Note that this is just a low-level encapsulation of an Oracle Cursor, and as you probably know, in a cursor you can just look at the current record and fetch the next one.

The best alternative is probably a select statement with an appropriate where clause.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.095s Queries: 13 (0.050s) Memory: 2.4990 MB (Peak: 3.0430 MB) Data Comp: Off Server Time: 2024-05-20 09:34:04 UTC
Valid HTML 5 and Valid CSS