Create Table Question...

Поиск
Список
Период
Сортировка
От Jerry LeVan
Тема Create Table Question...
Дата
Msg-id 7941C881-E8BD-4ACC-B3EE-86D87F718F96@gmail.com
обсуждение исходный текст
Ответы Re: Create Table Question...
Список pgsql-general
The docs ( 9.0.2) for create table asserts that a data type representing a row of
the table is automatically created.

Tain't clear to me what this means...

Here is a fragment of sql that I frequently use:
*************
insert into checks (select *
   from dblink('select * from checks where date >=''1/1/2011''')
   as (date date,
       amount numeric(9,2),
        tranid text,
       source text,
       memo text,
       status text,
       category text
      ) );
**************
The stuff after the 'as' is a description of the
rows of the table checks.

Could I shortened the above by using the automatically created row type of
the table checks?

Thanks

Jerry



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

Предыдущее
От: Steve White
Дата:
Сообщение: include source file from another language into function body?
Следующее
От: Bryan Murphy
Дата:
Сообщение: Hit by the out of memory killer last night