I have to ask you for something which is connetced with MSSQL.
So, I've got one column named Command(VARCHAR)
which is a part of some table named TB_Commander
.
This Column include results for example like (rows):
1.Delete o:2312312, c=312321
2.Add o:342342344, c=5
BTW. The thing I'd like to do is select substring from this rows which include only 'o:2312312' and for row number 2, only 'o:342342344'.
I'm stuck over here:
select
SUBSTRING(Command,PATINDEX('%1%',Command),
CHARINDEX(',',Command,PATINDEX('%o=%',Command))-0) as OperationID
from TB_Commander
where IdRow = 921321
Sorry for my english...
Thanks for any hand...