When I need recreate a table structure I do it like

CREATE db_target.table_copy
SELECT * FROM db_source.table
WHERE 1=0;

The only thing that you have to do now is

DESCRIBE db_target.table_copy;
DESCRIBE db_source.table;

Since you need to manually  reestablish the indices in the new table.

Although there might well be smarter methods out there.

Hannes

On 7/4/01 8:19 AM, "Graham Nichols" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Can I copy a table (structure only) to another database? I've searched
> though my manuals without success so far.
> 
> kind regards,  Graham
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>  http://www.mysql.com/manual.php   (the manual)
>  http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
> <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to