Re: How to write in Postgres

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: How to write in Postgres
Дата
Msg-id CAF-3MvOAb0MPZsPa+=BGGY9+ysgDb2re66-iJs6i3gv5kPtqPw@mail.gmail.com
обсуждение исходный текст
Ответ на How to write in Postgres  (<mgould@isstrucksoftware.net>)
Список pgsql-general
On 7 February 2012 15:03, <mgould@isstrucksoftware.net> wrote:
How do I convert this to PostGres. I'm getting a error
ERROR: syntax error at or near "("
LINE 23: set chr = substr(lfeid,idx,1);

Assuming you are writing this as pl/pgsql code, the way you do your variable assignments is wrong on two accounts. Find some time to read the chapter on pl/pgsql if possible ;)

Anyway, that line should read:
chr := substr(lfeid,idx,1);

--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

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

Предыдущее
От:
Дата:
Сообщение: How to write in Postgres
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: default database selector