By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,287 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,287 IT Pros & Developers. It's quick & easy.

Copy structure

P: n/a
Hi,
I'd like to copy structure only from first table to second?
What can I do?

Paul
Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.