'string'에 해당되는 글 1건

  1. 2009.08.20 [PostgreSQL] String 자르고 합치기
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'

참고
Posted by zeide
,