Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What in TSQL is comparable to padl() function in VFP?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00518637
Message ID:
00518645
Vues:
11
Hi Terry,

I asked a similar question about a week ago (g) only I wanted the PADR() function.

According to Mike Levy, there's no intrinsic function in TSQL that matches the padding functions in VFP. His suggestion was to write UDFs for them (and a good suggestion -- I'm doing those -- thanx Mike).

Bob Archer suggested to use the CAST function to accomplish this (and it worked for the particular case I asked about -- thanx Bob).

Thread # 514206, message # 514255 if you'd like further info.

HTH.

>I have a varchar field that needs padding to allow proper ordering and checking for duplicates.
>
>Is there a command to pad zeroes onto a string?
>
>TIA
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform