1. 자르기
SUBSTRING(string from num1 for num2)
string에서 num1부터 시작해서 num2의 문자를 자른다.
SUBSTRING('helloworld' from 3 for 3)
>'llo'
2. 합치기
string1 || string2
string1과 string2를 합친다.
'hello' || 'world'
>'helloworld'
참고
SUBSTRING(string from num1 for num2)
string에서 num1부터 시작해서 num2의 문자를 자른다.
SUBSTRING('helloworld' from 3 for 3)
>'llo'
2. 합치기
string1 || string2
string1과 string2를 합친다.
'hello' || 'world'
>'helloworld'
참고