Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Padding Strings
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Divers
Thread ID:
01183507
Message ID:
01183521
Vues:
16
>How can I pad strings like the VFP PADL() and PADR() command in SQL?
-- PADR with spaces
CAST(oldvalue, CHAR(<NewLength>))
-- PADL with spaces
RIGHT(REPLICATE(SPACE(1),<NewLength>) + oldvalue,<NewLength>)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform