Example: Applying the SUBSTRING Function to a CLOB Column

Teradata Vantageā„¢ SQL Functions, Expressions, and Predicates

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1145-162K

The following statement applies the SUBSTRING function to a CLOB column in table full_text and stores the result in a CLOB column in table sub_text.

   INSERT sub_text (text)
   SELECT SUBSTRING (text FROM 9 FOR 128000)
   FROM full_text;