‎2019 Feb 19 6:01 AM
Hey,
am facing an error while writing sql query. I am using gui7.2.
error: If the new OpenSQL syntax is used, it must be used throughout. This includes using @ to escape host variables.
what is this. my code is:
SELECT SINGLE * FROM
ADRCT LEFT JOIN TVKO
ON ADDRNUMBER = TVKO-ADRNR
INTO ADRCT
WHERE TVKO-BUKRS = VBRK-BUKRS.
I also tried this.
SELECT SINGLE * FROM
ADRCT LEFT JOIN TVKO
ON ADDRNUMBER = TVKO-ADRNR
INTO (@ADRCT)
WHERE TVKO-BUKRS = VBRK-BUKRS.
but still facing error.
‎2019 Feb 19 9:32 AM
(@ADRCT) should be @ADRCT only, no bracket, where condition also need @.
Also, for join sql you have to use ~ instead of -.
‎2019 Feb 19 7:23 AM
Don't use host expressions at all (don't use @) or use only host expressions (@ in front of all variables)
‎2019 Feb 19 9:32 AM
(@ADRCT) should be @ADRCT only, no bracket, where condition also need @.
Also, for join sql you have to use ~ instead of -.
‎2019 Feb 19 9:36 AM