Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position of a specific word
Message
 
 
À
04/03/2003 11:16:11
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00760945
Message ID:
00760959
Vues:
28
You can use CHARINDEX() or PATINDEX() functions as a starting point. See BOL for details.

>Hi All,
>
>I want to search a specific value and find out the number before – in a varchar column
>
>The values are :
>ProjectNo	          Notes
>12		1-Ashish,4-Jain,1-Keith
>44		4-ABC,6-Ashish,8-CCC,6-SSS
>45		5-AAA,8-SSS,8-Keith,11-Ashish
>I want to return the values
>1
>6
>11
>for different project number when I search for string “Ashish” in Notes column.
>
>Thanks
>…ashish
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform