Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you say it in SQL?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01344218
Message ID:
01344242
Views:
14
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform