Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ISNULL and SQL Server
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01386986
Message ID:
01387085
Views:
59
This message has been marked as a message which has helped to the initial question of the thread.
Dmitry,

You can have one SQL statements and use TEXTMERGE() to replace incompatible parts.
lcSQLTemplate = "SELECT filed1, field2, <<lcNVLfunc>>(field3, 0) FROM mytable"
lcNVLfunc = "NVL"
? TEXTMERGE(lcSQLTemplate)
lcNVLfunc = "ISNULL"
? TEXTMERGE(lcSQLTemplate)
>I didn't know it. Thanks. I wish there was also equivalent of NVL() to Sql Select so that I would not have to have 2 SQL Select statements for each database.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform