Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 字符串中第一个字符的T-SQL索引_Sql Server_String_Tsql_Character_Indexof - Fatal编程技术网

Sql server 字符串中第一个字符的T-SQL索引

Sql server 字符串中第一个字符的T-SQL索引,sql-server,string,tsql,character,indexof,Sql Server,String,Tsql,Character,Indexof,如何使用T-SQL查找字符串中第一个数字字符的索引?我使用: 见 select patindex('%[0-9]%', 'My1String') select PATINDEX('%[0-9]%', 'your_12345_string')

如何使用T-SQL查找字符串中第一个数字字符的索引?

我使用:


select patindex('%[0-9]%', 'My1String')
select PATINDEX('%[0-9]%', 'your_12345_string')