A
ashg657
Heres a quick question,
Below is my first stored procedure (I am a beginner at this):
CREATE PROCEDURE "pricesupdate"
UPDATE PRODUCTS
SET PRODUCTS.CURRENTSELLINGPRICE = PRODUCTS.NEWSELLINGPRICE
FROM PRODUCTS
WHERE PRODUCTS.DATEOFPRICECHANGE = DATE AND PRODUCTS.NEWSELLINGPRICE > "0";
I keep getting the error "Incorrect syntax near the keyword UPDATE". Can
anyone shed some light on to what I am doing wrong here?
Thanks in advance.
Below is my first stored procedure (I am a beginner at this):
CREATE PROCEDURE "pricesupdate"
UPDATE PRODUCTS
SET PRODUCTS.CURRENTSELLINGPRICE = PRODUCTS.NEWSELLINGPRICE
FROM PRODUCTS
WHERE PRODUCTS.DATEOFPRICECHANGE = DATE AND PRODUCTS.NEWSELLINGPRICE > "0";
I keep getting the error "Incorrect syntax near the keyword UPDATE". Can
anyone shed some light on to what I am doing wrong here?
Thanks in advance.