WILLIEWANKA
Technical User
I'm running into unexpected results when I use a line comment at the end of a line
Will give me expected results, but
Will do some funky things. Why does a line comment at the end of a line not do what it should do? The manual says teradata should know that anything after "--" is conisdered a null statement.
Code:
sel trim('a') || trim(' ') || trim('b') || ' ' || substr('0000000000', 1,4)
Will give me expected results, but
Code:
sel trim('a') || trim(' ') || trim('b') || ' ' || substr('0000000000', 1,4) --'98.3';
Will do some funky things. Why does a line comment at the end of a line not do what it should do? The manual says teradata should know that anything after "--" is conisdered a null statement.