Re: function and passing the table name to be used with SQL stmnt

Поиск
Список
Период
Сортировка
От kamiseq
Тема Re: function and passing the table name to be used with SQL stmnt
Дата
Msg-id 1193686652.895955.39770@v3g2000hsg.googlegroups.com
обсуждение исходный текст
Ответ на function and passing the table name to be used with SQL stmnt  (kamiseq <kamiseq@gmail.com>)
Список pgsql-general
>     SELECT INTO _id id FROM _tabela order by id desc limit 1;

ok I ve found that

EXECUTE 'SELECT id FROM ' || quote_ident(_tabela) ||' order by id desc
limit 1' INTO _id;


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

Предыдущее
От: kamiseq
Дата:
Сообщение: Re: function and passing the table name to be used with SQL stmnt
Следующее
От: Jorge Godoy
Дата:
Сообщение: Re: Postgres SQL Client for Suse Linux