Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL 2005 syntax for VFP PADR and PADL
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01100959
Message ID:
01101931
Vues:
15
Thank you.

>It's better to avoid UDFs in the queries for performance reason. In most cases following should suffice
>-- PADR(col1, 25)
>CAST(col1 AS char(25))
>-- PADL(col1, 25)
>REPLICATE(SPACE(1), 25 - DATALENGTH(col1)) + col1
>
>
>
>>Is there a SQL Server equivalent for the FoxPro PADR() and PADL() functions. These function pad a string either to the left or right up to a specified number of characters. In this case I'm only concerned with padding with spaces.
>>
>>BTW, thanks to those building this page
>>http://fox.wikis.com/wc.dll?Wiki~VFPSQL-TSQL-Mapping
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform