$ 0 0 #1 is the corect solution (from a Teradata SQL point of view). But you are embedding single quotes within single quotes, and so you need to escape the single quotes for the format statement. format '''yyyy-mm-ddBhh:mi:ss.SSSSSS''')
#1 is the corect solution (from a Teradata SQL point of view).
But you are embedding single quotes within single quotes, and so you need to escape the single quotes for the format statement.
format '''yyyy-mm-ddBhh:mi:ss.SSSSSS''')