Concat('A', 'B') vs 'A' || 'B' in Teradata

Noticed, that there are two ways to concatenate strings in Teradata.

  • CONCAT('a', 'b')
  • 'a' || 'b'

As every second counts, which one is faster?

SELECT CONCAT('a', 'b'), 'a'||'b';

or these are compiled to the same operation?

2

1 Answer

Both are completely interchangeable and none gives any performance boost.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest