Re: Insert on create table

Поиск
Список
Период
Сортировка
От Jeff Eckermann
Тема Re: Insert on create table
Дата
Msg-id 20030516201201.98175.qmail@web20806.mail.yahoo.com
обсуждение исходный текст
Ответ на Insert on create table  (Yovko Ilchev Yovkov <yyovkov@vipsolutions.net>)
Ответы Re: Insert on create table  (Nabil Sayegh <postgresql@e-trolley.de>)
Re: Insert on create table  (Nabil Sayegh <nas@e-trolley.de>)
Список pgsql-novice
--- Yovko Ilchev Yovkov <yyovkov@vipsolutions.net>
wrote:
> Can anyone tell what I am in need of to do smthng
> like:
> When: CREATE TABLE table_1 (...);
> Automaticaly to execute: INSERT INTO TABLE newtables
> (name) VALUE (table_1);

Not with ordinary SQL.  Two choices:
1. Code this into your application.
2. Write a function to create tables, which includes
the insert.  Then use only that function when creating
your tables.  But you will still need to restrict
access to your application only, as any user who can
connect directly to the database will be able to
create tables directly.  I would prefer solution 1.

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

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

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: Copy command (bug??)
Следующее
От: Nabil Sayegh
Дата:
Сообщение: Re: Insert on create table