The string concatenation operator in SQL is ||, not +. Also, substr's start-index argument counts from 1 not 0. Otherwise you've got the right idea... regards, tom lane
pgsql-novice by date:
Соглашаюсь с условиями обработки персональных данных