Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
T-SQL equivalent of StrTran()?
Message
De
01/06/2012 13:22:44
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01545078
Message ID:
01545086
Vues:
32
>>>Is there a function in SQL Server that works like STRTRAN in VFP? I have the following line in VFP that I need to convert to T-SQL:
>>>
>>>
>>>cString = STRTRAN( cString, '&' + 'amp;', '&' )
>>>
>>>
>>>Any suggestions on how to do it? TIA.
>>
>>See REPLACE function in BOL
>>
>>select replace (@cString, '&' + 'amp;', '&' )
>
>Thank you.

Dmitry,

Here are all the TSQL string functions. My usual starting point...

http://msdn.microsoft.com/en-us/library/ms181984(v=sql.105).aspx
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform