PLPGSQL

Поиск
Список
Период
Сортировка
От Shaun Clements
Тема PLPGSQL
Дата
Msg-id 100F78F2B203444BB161BBA7077FF6131CD96F@srldbexc003.relyant.co.za
обсуждение исходный текст
Список pgsql-general

Hi All

Im trying to assign the value of a dynamic variable, to a variable.
How is this done in PostgresQL. Is this allowed in Postgres Procedural Language

Here is my attempt.

variable1:= quote_ident('variable_'||quote_literal(year));

Where the variable is called
variable_2004
where name, represents the year

RESULT WANTED:  variable1 gets assigned the value of variable_2004.

Any help is appreciated.Thanks

Kind Regards,
Shaun Clements

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

Предыдущее
От: Klint Gore
Дата:
Сообщение: Re: inherited table and rules
Следующее
От: Shaun Clements
Дата:
Сообщение: ++ PLPGSQL