General information
Title:
How can I execute an SPT conditional replace
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only