Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Like loading the zeros in SQL
Message
 
À
05/05/2006 15:41:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01119748
Message ID:
01119752
Vues:
15
Try something like....

REPLICATE('0', (4 - LEN(E.numest))) + E.numest

HTH

Chris

>hi, how I can do so that in select SQL to be able to fill with zero from the left, in vfp is with the function right(), but SQL this does not work to me.
>ej.
>select STR(E.anomat,4)+'-'+RIGHT('0000'+RTRIM(STR(E.numest)),4) as matricula
>the field registers must contain matricula=2005-0045, but 2005- 45
Chris Maiden
Email
Web
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform