Skip to content

Appends a trailing character to a string if it is not already present.

func.append_trailing_char_if_absent(<str>, <char>)
func.append_trailing_char_if_absent('hello', '!')
┌──────────┐
'hello!'
└──────────┘
APPEND_TRAILING_CHAR_IF_ABSENT(<str>, <char>)
SELECT APPEND_TRAILING_CHAR_IF_ABSENT('hello', '!');
┌────────┐
│ hello! │
└────────┘