Skip to main content

Insert Text Into Text

  • Oct 24, 2018 9:49 PM UTC
  • 0 replies
  • 2 views

Jim_Knicely
Forum|alt.badge.img+2

The built-in Vertica INSERT function injects a character string into a specified location in another character string.

Example:

dbadmin=> SELECT insert('Vertica is AWESOME!', 12, 0, 'EXTREMELY ');
            insert
-------------------------------
Vertica is EXTREMELY AWESOME!
(1 row)

Helpful Link:
https://www.vertica.com/docs/9.2.x/HTML/Content/Authoring/SQLReferenceManual/Functions/String/INSERT.htm

Have fun!