Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2001-12-03 : 08:33:47
|
| Charlotte writes "I like to get the position of a specific letter in a string. In ORACLE there is INSTR, but what is the solution in SQLServer?I´m trying to remove the first word from a string and therefore need the position of the first char(32). “AUIDI A6 1,6” --> “A6 1,6”Thanks in advanceCharlotte" |
|
|
sica
Posting Yak Master
143 Posts |
Posted - 2001-12-03 : 08:41:06
|
| CHARINDEX is what you are looking for:declare @a varchar(25)set @A = 'AUIDI A6 1,6'SELECT SUBSTRING(@A,CHARINDEX(' ',@A)+1,LEN(@A))Sica |
 |
|
|
|
|
|