Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP SQL Syntax - Tuesday BrainFreeze
Message
De
11/07/2007 11:39:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01238981
Message ID:
01239327
Vues:
6
>>>When the calculated field length is calculated based on a first matching record and when it is not?
>>
>>God knows, then VFP:)
>>What I learnt (try it once first but) if the query is not based on an expression like alltrim(), pad*() playing with the size or a udf but an expression like nvl(), iif(),evl() ... then VFP uses the field's length.
>>It somehow started to improve after VFP6.
>>Cetin
>
>Thanks a lot, I will keep it in mind.

Just a sample hit me, somehow related, from another forum:

select alltrim(firstName)+' '+alltrim(lastName) as fullName from ...

vs

select firstName-(' '+lastName) as fullName from ...

The latter ensures you'd have a consistent result even if the base structures change.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform