Re: quoted_literal with numeric variable.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: quoted_literal with numeric variable.
Дата
Msg-id 16653.1042739365@sss.pgh.pa.us
обсуждение исходный текст
Ответ на quoted_literal with numeric variable.  (Conxita Marín <comarin@telefonica.net>)
Список pgsql-novice
=?iso-8859-1?Q?Conxita_Mar=EDn?= <comarin@telefonica.net> writes:
> How to construct an 'EXECUTE' sentence into a function using numeric
> variables?
> To insert the variable in the string to execute, i use
> 'quote_literal(numero)' where numero is a numeric variable.

Don't bother with quote_literal.  You only need that for string values
that might contain quotes or backslashes.  A numeric variable won't have
either.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: VACUUM ANALYSE...
Следующее
От: "Rosta Farzan"
Дата:
Сообщение: Re: reading command from file