Subject | Re: copying a table |
---|---|
Author | edi_kolb |
Post date | 2003-10-03T15:13:09Z |
--- In firebird-php@yahoogroups.com, Milan Babuskov <albis@e...> wrote:
I´m using PHP and ibWebAdmin. What actually is the SQL code that creates id=
entical
tables? Do I have to create a new table and enter the information about the=
rows
again manually?
Thanks in advance fo your help!
Edi
> edi_kolb wrote:Hi Milan!
> > I´m quite new to Firebird and am using it (unwillingly) for our
> > website. I am looking
> > for a method to copy an existing table. It doesn´t matter wether
> > data is copied or not
> > but at least the structure should be the same. Plz give me a SQL code
> > that does the
> > trick!
>
> Which tool are you using to access the database?
>
> For example, with isql, you could see the table DDL with SHOW TABLE
> command or -x parameter, and then write the SQL that creates identical
> tables.
>
> To fill the new table use:
> INSERT INTO newtable
> SELECT * FROM oldtable;
>
> If you're only using PHP, you should install ibWebAdmin and you can
> easily to the same thing from it.
>
> --
> Milan Babuskov
> http://fbexport.sourceforge.net
I´m using PHP and ibWebAdmin. What actually is the SQL code that creates id=
entical
tables? Do I have to create a new table and enter the information about the=
rows
again manually?
Thanks in advance fo your help!
Edi