Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you say it in SQL?
Message
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 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01344218
Message ID:
01344242
Vues:
15
>>Hi. How would you say in a sql command
>>
>>
>>IF there is not a matching value in the table, use '00000'
>>
>>
>>Thanks, Randy
>
>
>SELECT ISNULL(FieldName, '00000') AS MyFieldName
>(removed rest of SQL)
>
Depends on your back-end.

In VFP you would use NVL() function.

In SQL Server you would use ISNULL() or COALESCE().

I don't know what would you use in Oracle or MySQL.
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