Share via


position Method (java.sql.Blob, long)

Returns the position of a specified pattern in the BLOB based on the given pattern and starting index.

Syntax

public long position(java.sql.Blob pattern,
                     long start)

Parameters

pattern

The pattern to search for.

start

The start index to search at.

Return Value

A long value of the position where the pattern was found, or -1 if it was not found.

Exceptions

SQLServerException

Remarks

This position method is specified by the position method in the java.sql.Blob interface.

See Also

Reference

SQLServerBlob Class

Concepts

position Method (SQLServerBlob)

SQLServerBlob Methods

SQLServerBlob Members