언어

SqlServerDbFunctionsExtensions.PatIndex(DbFunctions, String, String) 메서드

정의

모든 유효한 텍스트 및 문자 데이터 형식에서 지정된 식에서 패턴이 처음 나타나는 시작 위치를 반환하거나 패턴을 찾을 수 없는 경우 0을 반환합니다.

public static long PatIndex(this Microsoft.EntityFrameworkCore.DbFunctions _, string pattern, string expression);
static member PatIndex : Microsoft.EntityFrameworkCore.DbFunctions * string * string -> int64
<Extension()>
Public Function PatIndex (_ As DbFunctions, pattern As String, expression As String) As Long

매개 변수

_
DbFunctions

DbFunctions 인스턴스입니다.

pattern
String

검색할 문자열 패턴입니다.

expression
String

일반적으로 지정된 패턴을 검색하는 열입니다.

반품

지정된 식에서 패턴이 처음 나타나는 시작 위치를 반환합니다.

설명

자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.

적용 대상