Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get same as STRTRAN()
Message
De
24/06/2008 14:02:47
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01326436
Message ID:
01326444
Vues:
23
>>>>I need to replace all commas with something else from fields as they are selected from a table using a SQL statement.
>>>
>>>What about REPLACE() command?
>>
>>Actually, I think I need to do it on the PRINT statement instead of in the SQL:
>>
>>
>>PRINT
>>	@ChartID +
>>	',' +
>>	@Folder +
>>	',' +
>>	@DocumentName +
>>	',' +
>>	@DocDateTime +
>>	',' +
>>	@ProcessedFileName
>>
>>
>>The @Folder and @DocumentName need to have commas replaced with hyphens.
>
>Doesn't matter:
>
>PRINT
>
>     replace(@Folder,",","-")
NO with double quotes :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform