INSTR¶
The INSTR function returns the location of the nth occurrence of a given
pattern within a large object.
<position> INTEGER INSTR(<lob_loc> { BLOB | CLOB },
<pattern> { RAW | VARCHAR2 } [, <offset> INTEGER [, <nth> INTEGER ]])
Parameters
lob_loc
Large object locator of the large object in which to search for pattern.
pattern
Pattern of bytes or characters to match against the large object,
lob. patternmust beRAWiflob_locis aBLOB. pattern must beVARCHAR2iflob_locis aCLOB.
offset
Position within
lob_locto start search forpattern. The first byte/character is position 1. The default is 1.
nth
Search for
pattern,nthnumber of times starting at the position given byoffset. The default is 1.
position
Position within the large object where
patternappears the nth time specified bynthstarting from the position given byoffset.