Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Padding a string
Message
 
 
À
29/02/2008 10:28:48
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01297712
Message ID:
01297719
Vues:
18
This message has been marked as the solution to the initial question of the thread.
RIGHT(REPLICATE('0',2) + col1,2)
I also published PADx (and some other) UDFs for MS SQL Server in UtMag a while ago

>What's the proper way of padding a string?
>
>Lets say I have this:
>
>
>PRINT '2'
>
>
>But, I need a result like:
>
>02
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform