467,185 Members | 1,140 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,185 developers. It's quick & easy.

Copy structure

Hi,
I'd like to copy structure only from first table to second?
What can I do?

Paul
Nov 12 '05 #1
  • viewed: 3213
Share:
3 Replies
Polo wrote:
Hi,
I'd like to copy structure only from first table to second?
What can I do?


CREATE TABLE t2 LIKE t1;

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #2
In article <ck**********@opal.futuro.pl>, Polo (pp***@wp.pl) says...
Hi,
I'd like to copy structure only from first table to second?
What can I do?

Paul


create table x like y

Check the SQL Reference for a full description.
Nov 12 '05 #3
Knut Stolze wrote:
Polo wrote:

Hi,
I'd like to copy structure only from first table to second?
What can I do?

CREATE TABLE t2 LIKE t1;

Thank you very much:)
Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Anna | last post: by
4 posts views Thread by Stephan Tobies | last post: by
15 posts views Thread by Sourcerer | last post: by
3 posts views Thread by Pravin Prabhu | last post: by
4 posts views Thread by Dennis | last post: by
7 posts views Thread by Just Me | last post: by
4 posts views Thread by Férnas | last post: by
19 posts views Thread by ivan.leben@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.