Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Improving sluggish SQL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00306158
Message ID:
00319868
Vues:
14
Hi Ricardo,

>If i understood correctly, you want to change null values by empty values, isn' it? If so, You can use NVL funtion. This funtion returns a non-null value, between 2 variables.
>Example:
>
>a = .null.
>b = "my value"
>WAIT WINDOW NVL(a,b)

>This will return "MY VALUE", because A was a null value, and B wans't.
>You can include NVL at your SELECT statement.
>
>Hope it helps. Nice to hear from you.

Thanks for this info. My only problem that I used (actually, not I, but my collegue) * to select from tables. NVL function requeres each field to be specified, right?
So, as I understand, instead of
SELECT Table1.*, Table2.*, Table3.*, etc.
I need Select NVL(Table1.NumericField,0), NVL(Table1.CharacterField,''), NVL(Table1.DateField,{}), etc., right?

And probably I also need to include as clause also... Too combersome...

The second question is how NVL influences on speed of Query?

BTW, Nice to hear from you too :)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform