Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combining fields with SQL?
Message
 
À
31/08/2000 11:12:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00411282
Message ID:
00411318
Vues:
14
>Gee,
>
>When did that change? I've padded combined expressions like that for years to avoid a problem that seems not to exist anymore. Just tested it without the PADR and surprise -- no problem.
>
>>>select table1.employee_id, ;
>>>ALLTRIM(employee.first_name) + " " + ALLTRIM(employee.last_name) AS FULL_NAME ;
>>>FROM table1, employee
>>>WHERE table1.employee_id = employee.employee_id ;
>>>INTO table3
>>
>>Better PADR that expression, or you'll lose info if the first item has short first and/or last name.

Told ya... :)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform