Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Size of a Long Field
I have this code that is used to search within a trigger body ... you can
maybe adapt this to get length ... you have to just change dbms_lob.instr to
dbms_lob.getlength() maybe.
CREATE OR REPLACE FUNCTION long_contains
( row_id ROWID,
VALUE VARCHAR2) RETURN NUMBER
IS
--
ret_val NUMBER;
--
/* Table details */
OWN VARCHAR2(30); tab VARCHAR2(30); col VARCHAR2(30); /* DBMS_SQL variables */ cur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR; res PLS_INTEGER := 0;
AND c.TYPE# = 8 AND c.obj# = o.obj# AND o.obj# = DBMS_ROWID.ROWID_OBJECT(row_id);
HTH
Raj
QOTD: Any clod can have facts, but having an opinion is an art!
-----Original Message-----
Sent: Wednesday, February 05, 2003 6:53 AM
To: Multiple recipients of list ORACLE-L
How do you determine the size, in bytes, of a long field?
Please. No tape measure jokes.
Ed
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Jamadagni, Rajendra
INET: Rajendra.Jamadagni_at_espn.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message