Pass parameters to SQL script

Поиск
Список
Период
Сортировка
От Fuchs Clemens
Тема Pass parameters to SQL script
Дата
Msg-id 9DDD01E6B277D511B22300A0C9EEE776025D522B@LNZP106A
обсуждение исходный текст
Ответы Re: Pass parameters to SQL script  (Daniel Martini <dmartini@uni-hohenheim.de>)
Список pgsql-general

Hi,

is it possible to pass parameters to a SQL script, which I launch via the psql shell?

In Oracle it works like that:

        sqlplus myscript.sql myschema

and within the script I can use the parameter like this:
       
        CONCAT .
        CREATE TABLE &1..test (name VARCHAR2(100));

Is there a counterpart for PostgreSQL?

thanks,
Clemens

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: select count(*) from pg_stat_activity in V8.0.0
Следующее
От: Paramveer.Singh@trilogy.com
Дата:
Сообщение: possible bug in exception handling code? (postgres8.0beta)