Re: How to convert SQL store procedure to Postgresql function

Поиск
Список
Период
Сортировка
От Leif Biberg Kristensen
Тема Re: How to convert SQL store procedure to Postgresql function
Дата
Msg-id 201202281322.56490.leif@solumslekt.org
обсуждение исходный текст
Ответ на Re: How to convert SQL store procedure to Postgresql function  (Rehan Saleem <pk_rehan@yahoo.com>)
Список pgsql-sql
 Tirsdag 28. februar 2012 12.56.46 skrev Rehan Saleem :
> hi ,
> whats wrong with this function , i am getting syntax error which is syntax
> error at or near "+=" LINE 13:  set sql += ' bpoverlap, centredistance

You can't concatenate that way in plpgsql. Instead of "set sql +=" try with 
just "||" which is the operator joining two strings.

regards, Leif
http://code.google.com/p/yggdrasil-genealogy/


В списке pgsql-sql по дате отправления:

Предыдущее
От: Rehan Saleem
Дата:
Сообщение: Re: How to convert SQL store procedure to Postgresql function
Следующее
От: Richard Klingler
Дата:
Сообщение: Re: Natural sort order