Re: passing values into .sql scripts

Поиск
Список
Период
Сортировка
От Geoffrey Knauth
Тема Re: passing values into .sql scripts
Дата
Msg-id 285D609A-D8C1-4E37-8D45-89E85A155FA6@knauth.org
обсуждение исходный текст
Ответ на Re: passing values into .sql scripts  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-sql
That did exactly what I wanted.  Thank you!  (I had tried \set  
acct ... before, but it was your quoting that fixed my problem.)

Geoffrey
--
Geoffrey S. Knauth | http://knauth.org/gsk


On Sep 15, 2005, at 18:43, Michael Fuhr wrote:

> What's your intention here?  The above sets the variable tmp to the
> value of the variable acct concatenated with 'a value', but you
> don't show acct being set anywhere.  Did you mean to set acct?
> If so then try this:
>
> \set acct '\'a value\''



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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: passing values into .sql scripts
Следующее
От: Daryl Richter
Дата:
Сообщение: Re: showing multiple REFERENCE details of id fields in single