INSERTS and Queries

Поиск
Список
Период
Сортировка
Dear All,

I can use insert with 'select' if I do this

INSERT INTO TABLE t1 (col1) SELECT stuff FROM t2;

But I want to insert more than one thing into the table, e.g.

INSERT INTO TABLE t1 (col1,col2) SELECT stuff FROM t2 , 100;

Any ideas on how I would achieve this?

Thanks

Colin

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today!
http://www.msn.co.uk/messenger


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

Предыдущее
От: Karam Chand
Дата:
Сообщение: Re: List of reserved keywords and function names in PostgreSQL
Следующее
От: Russ Brown
Дата:
Сообщение: Re: INSERTS and Queries