Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the size for fields in select statement
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00649677
Message ID:
00649681
Views:
9
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform