Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
T-SQL を使用して、文字列内の最初の数字のインデックスを見つけるにはどうすればよいですか?
私は使用しますPATINDEX:
PATINDEX
select patindex('%[0-9]%', 'My1String')
select PATINDEX('%[0-9]%', 'your_12345_string')
ドキュメントSQLFiddleを参照してください