Hi Lars,
In service pack 8, I'm getting an error with the Update Top approach. It says incorrect syntax near top. Is this a new feature of SAP Hana?
My syntax is like this:
UPDATE TOP 100000 "myschema"."myTable" A
SET PLANT =
(
SELECT B.SUPP_PLANT
FROM PUBLIC.Some_synonym B
WHERE
A.SHIP_TO_ID = B.SHIP_TO
AND A.MATERIAL_ID = B.MATERIAL
AND A.SALES_DATE = B."/BIC/ZDM_DATE"
)
WHERE A.PLANT IS NULL;
ERROR: sql syntax error: incorrect syntax near "TOP": line 1 col 8 (at pos 8)
I have no issue running this wide open without TOP, just trying to get faster speed by updating fewer rows with a loop.
I can easily SELECT TOP with no error. Just UPDATE TOP will not go.
Thanks.