You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/t-sql/functions/patindex-transact-sql.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,7 @@ position
152
152
The following example uses a variable to pass a value to the *pattern* parameter. This example uses the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] database.
153
153
154
154
```sql
155
-
DECLARE @MyValue varchar(10) ='safety';
155
+
DECLARE @MyValue VARCHAR(10) ='safety';
156
156
SELECT position = PATINDEX('%'+ @MyValue +'%', DocumentSummary)
0 commit comments