Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.68 KB

File metadata and controls

56 lines (42 loc) · 1.68 KB
title position Method (java.lang.String, long) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerClob.position (java.lang.String, long)
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 86fad8ed-375a-42e1-b40e-1fa085957a2c
author David-Engel
ms.author v-daenge

position Method (java.lang.String, long)

[!INCLUDEDriver_JDBC_Download]

Returns the character position of the specified substring in the CLOB based on the given starting position.

Syntax

  
public long position(java.lang.String searchstr,  
                     long start)  

Parameters

searchstr

The substring for which to search.

start

The position at which to begin searching; the first position is 1.

Return Value

The position at which the substring appears or -1 if it is not present; the first position is 1.

Exceptions

SQLServerException

Remarks

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

See Also

position Method (SQLServerClob)
SQLServerClob Methods
SQLServerClob Members
SQLServerClob Class