Sql server 字符串中第一个字符的T-SQL索引
如何使用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')
select patindex('%[0-9]%', 'My1String')
select PATINDEX('%[0-9]%', 'your_12345_string')