Re: [SQL] CREATE table1 FROM table2

2003-06-23 Thread scott.marlowe
On Mon, 23 Jun 2003, L.V.Boldareva wrote: > Hello! > > many people posted their answer to this simple question. however, > neither > CREATE TABLE AS > nor > SELECT INTO > > do not take care about keys and triggers, etc. > > The commands above only copy the structure of the table, and the data.

Re: [SQL] CREATE table1 FROM table2

2003-06-23 Thread L.V.Boldareva
Hello! many people posted their answer to this simple question. however, neither CREATE TABLE AS nor SELECT INTO do not take care about keys and triggers, etc. The commands above only copy the structure of the table, and the data. Are there any workarounds fr copying the table as a whole object?

Re: [SQL] CREATE table1 FROM table2

2003-06-17 Thread Guillaume LELARGE
Hi, Le Mardi 17 Juin 2003 20:46, Achilleus Mantzios a écrit : > On 17 Jun 2003, Rado Petrik wrote: > > How I create table1 from other table2 . > > > > "cp table1 table2" > > create table table2 as select * from table1; > Another way would be: select * into table2 from table1; (See http://www.p

Re: [SQL] CREATE table1 FROM table2

2003-06-17 Thread Tomasz Myrta
Dnia 2003-06-17 17:20, Użytkownik Rado Petrik napisał: Hi, How I create table1 from other table2 . "cp table1 table2" create table2 as select * from table1; It is described in Postgresql documentation SQL Commands -> "create table as" Regards, Tomasz Myrta ---(end of br

Re: [SQL] CREATE table1 FROM table2

2003-06-17 Thread Nicolas JOUANIN
etrik > Envoyé : mardi 17 juin 2003 17:21 > À : [EMAIL PROTECTED] > Objet : [SQL] CREATE table1 FROM table2 > > > Hi, > > How I create table1 from other table2 . > > "cp table1 table2" > > Thanks. > > -- > Rado Petrik <

Re: [SQL] CREATE table1 FROM table2

2003-06-17 Thread Achilleus Mantzios
On 17 Jun 2003, Rado Petrik wrote: > Hi, > > How I create table1 from other table2 . > > "cp table1 table2" create table table2 as select * from table1; > > Thanks. > > -- == Achilleus Mantzios S/W Engineer IT dept Dynaco

Re: [SQL] CREATE table1 FROM table2

2003-06-17 Thread Devrim GUNDUZ
Hi, On 17 Jun 2003, Rado Petrik wrote: > How I create table1 from other table2 . CREATE TABLE table1 AS SELECT * FROM table2; will work. Regards, -- Devrim GUNDUZ [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.tdmsoft.com

[SQL] CREATE table1 FROM table2

2003-06-17 Thread Rado Petrik
Hi, How I create table1 from other table2 . "cp table1 table2" Thanks. -- Rado Petrik <[EMAIL PROTECTED]> ---(end of broadcast)--- TIP 8: explain analyze is your friend