Re: [PHP-DB] CREATE TABLE LIKE, error

2003-12-15 Thread Adam i Agnieszka Gasiorowski FNORD
"CPT John W. Holmes" wrote: > From: "Adam i Agnieszka Gasiorowski FNORD" <[EMAIL PROTECTED]> > > > I cannot use this query > > > > CREATE TABLE table LIKE other_table; > > > > , which is supposed to create an > > empty "clone" of the other_table named > > table. > > Was it added in some later

Re: [PHP-DB] CREATE TABLE LIKE, error

2003-12-15 Thread CPT John W. Holmes
From: "Gary Every" <[EMAIL PROTECTED]> > Try: > CREATE table new_table SELECT * from old_table limit 1; > > delete from new_table; > > This will give you the same structure in both tables, and the > deletion will make the new_table empty. Not quite the same as it will not copy indexes/keys...

Re: [PHP-DB] CREATE TABLE LIKE, error

2003-12-15 Thread CPT John W. Holmes
From: "Adam i Agnieszka Gasiorowski FNORD" <[EMAIL PROTECTED]> > I cannot use this query > > CREATE TABLE table LIKE other_table; > > , which is supposed to create an > empty "clone" of the other_table named > table. > Was it added in some later MySQL version? > It's in the manual on mysql.com,

RE: [PHP-DB] CREATE TABLE LIKE, error

2003-12-15 Thread Gary Every
, December 15, 2003 10:28 AM To: Lista PHP DB Subject: [PHP-DB] CREATE TABLE LIKE, error I cannot use this query CREATE TABLE table LIKE other_table; , which is supposed to create an empty "clone" of the other_table named table. Was it added in some l

[PHP-DB] CREATE TABLE LIKE, error

2003-12-15 Thread Adam i Agnieszka Gasiorowski FNORD
I cannot use this query CREATE TABLE table LIKE other_table; , which is supposed to create an empty "clone" of the other_table named table. Was it added in some later MySQL version? It's in the manual on mysql.com, bo no version info available. -- Seks, seks