Ignoring dot operator in Teradata BTEQ - Part 2 #2308
Closed
MarkBell920
started this conversation in
General
Replies: 2 comments 4 replies
-
Hey, can you elaborate on what's the issue here? Is it that |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks. Would that cause problems where the BTEQ command is not prefixed with a dot? .SET and SET are both valid BTEQ commands. Mark |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is following on from my previous question on trying to ignore BTEQ in Teradata SQL. Thank you for the help.
This works and I can catch the BTEQ keywords but this has caused another problem. Several of the BTEQ keywords are also valid Teradata SQL keywords so extending the Teradata dialect file breaks the SQL parsing. The most import BTEQ word here is SET.
So this would be valid Teradata SQL:
SET QUERYBAND = 'queryband details';
UPDATE table1
SET column1 = 12
WHERE column2 = 30;
With the dot operator on SET QUERYBAND being optional.
Any ideas on getting round this?
Mark
Beta Was this translation helpful? Give feedback.
All reactions