Sqlserver
 sql >> Base de Dados >  >> RDS >> Sqlserver

Uso na função Patindex()

select T.Value
from (values
        (charindex('MD', 'FHoisegh MD')),
        (charindex('DO', 'FHoisegh MD'))
     ) as T(Value)
where T.Value > 0