Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I execute an SPT conditional replace
Message
From
18/05/2002 11:17:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
How can I execute an SPT conditional replace
Miscellaneous
Thread ID:
00658560
Message ID:
00658560
Views:
28
Hi!
I'm looking for a way to make
a conditional update on MS-SQL 2000.
The code below is what I tried but it doesn't
work.

thanks in advance,
Nir.


***********************
sale_date = date()
lcPk = "my primary key"

myResult = SQLExec(myConn, ;
"UPDATE products " + ;
"SET last_sale = IIF(last_sale>?sale_date,last_sale,?sale_date) " + ;
"WHERE pk_products = ?lcPk")
***********************
Next
Reply
Map
View

Click here to load this message in the networking platform