I'm converting MS SQL Server codes to Teradata. I found out that Teradata has no replicate function. Below is the sample code
REPLICATE('0',2-LEN(CAST(COLUMN_NAME AS NVARCHAR)))
Is there an alternative function for replicate in Teradata?
Thanks
Try this:
This will repeat the character
'0'
two minus the length of the column, which is effectively doing the same thing asREPLICATE
in SQL Server.