Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the size for fields in select statement
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00649677
Message ID:
00649681
Vues:
10
You can use PADR() function.
select PADR(transform(nvl(field1,"nothing")) + ;
              transform(nvl(field2,"either")), 32) ;
  from x
>how can I set up the size for the concatenation of 2 fields within a select statement?
>
>Example:
>
>select transform(nvl(field1,"nothing")) + transform(nvl(field2,"either"))
>from x
>
>field1 and field2 are numerical. if the first row returns something like "123either", all the others will return 9 characters, if in one row i would have "nothing1234" i will actually get "nothing12". What can I do?
>
>TIA
>
>Alonso
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform