Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Performing a String Remove in SQL
Message
 
 
À
10/05/2007 12:27:51
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01224234
Message ID:
01224246
Vues:
19
>>>I have a string "123456-7890".
>>>
>>>I want to remove the "-" from it. Is there a string remove command, or do I need to do some fun stuff with substrings?
>>
>>You can use REPLACE() function ( similar to VFP STRTRAN())
>>
>>REPLACE(mycol, '-', '')
>>
>
>Wow, I hate how the function names are different in different platforms. I need one big cross reference chart. Thanks a lot!

Nice idea. I made a quick search, but haven't found it. Perhaps we can write a topic in wikis.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform