Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escape sequence with PATINDEX
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00662020
Message ID:
00662022
Vues:
19
This message has been marked as the solution to the initial question of the thread.
Try
SELECT PATINDEX('%[[]%','Here come the [dog]')
-- or
SELECT CHARINDEX('[','Here come the [dog]')
>I've tried to following:
>
>SELECT PATINDEX('%[%','Here come the [dog]'), and it returns 0, should return 15.
>
>If I replace the [ with < it's working fine, so I guess there is some concerns using [.
>
>Since the usage of [ in string is required, is there a way to permit the usage of [ in PATINDEX (escape sequence).
>
>Thanks!
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform