Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace a portion of a string
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01381814
Message ID:
01448388
Vues:
44
>>Within an update command, I need to replace a portion of a string in a Text field. So, basically, I am looking for the equivalent of this in SQL Server:
>>
>>
>>UPDATE MyTable SET MyField=STRTRAN(MyField," \ ","\")
>>
>
>REPLACE()
>
>
>UPDATE MyTable SET MyField=REPLACE(MyField,' \ ','\')
>
How do you get this to work if your field name is description ?
Brandon Harker
Sebae Data Solutions
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform