Is this possible.

Поиск
Список
Период
Сортировка
От Harvey, Allan AC
Тема Is this possible.
Дата
Msg-id 3C2CED55DF019847AB7BD7317837BDA9095861AB@ntlmsg02.onesteel.com
обсуждение исходный текст
Ответы Re: Is this possible.  (Klint Gore <kg@kgb.une.edu.au>)
Список pgsql-general
Hi all,

Can sombody please help me realise a function, the intent as described by...

-- Function to create the table for a new point

CREATE OR REPLACE FUNCTION make_table( varchar ) RETURNS VARCHAR AS '
    CREATE TABLE $1(
        parameter varchar(8) NOT NULL,
        value float NOT NULL,
        dt timestamp NOT NULL
        );

    CREATE INDEX $1_dtindex ON $1( dt );

    SELECT $1;
' LANGUAGE SQL;

I'm using 7.4.5.

Thanks

Allan




The material contained in this email may be confidential, privileged or copyrighted. If you are not the intended
recipient,use, disclosure or copying of this information is prohibited. If you have received this document in error,
pleaseadvise the sender and delete the document. Neither OneSteel nor the sender accept responsibility for any viruses
containedin this email or any attachments.
 

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

Предыдущее
От: "Sergey E. Koposov"
Дата:
Сообщение: weird GROUP BY error
Следующее
От: Klint Gore
Дата:
Сообщение: Re: Is this possible.