Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a string function
Message
De
11/10/2000 09:08:44
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00426782
Message ID:
00427777
Vues:
40
But you can create one with SQL Server 2000


CREATE FUNCTION PadWithZeros (@value INTEGER, @len INTEGER)
RETURNS CHAR(5)
AS
BEGIN
RETURN right(REPLICATE('0', @len)+ltrim(str(@value)), @len)
END

Or something like that.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform