Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
| Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 4th, 2005, 06:10 AM
Registered User
 
Join Date: Aug 2004
Location: kancheepuram, tamil nadu, India.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating table with existing table without value

Hi to ALL !
              In oracle9i how to create table structure
with existing table without value of existing table?

Thanks.
Kumar j.
  #2 (permalink)  
Old January 4th, 2005, 07:12 AM
Registered User
 
Join Date: Dec 2004
Location: Chennai, TN, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to maneeshgautam Send a message via MSN to maneeshgautam Send a message via Yahoo to maneeshgautam
Default

Hi Kumar,

Please try this,

CREATE TABLE NEWTABLENAME AS
SELECT * FROM OLDTABLENAME WHERE 1=2;

Thanks and regards
-Maneesh



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace and existing table with an updated one amerk20 Access VBA 6 August 30th, 2005 07:44 AM
Add an attribute to existing table peter_budo SQL Language 9 April 24th, 2005 01:35 PM
insert value of variable into an existing table mountaindew7612 SQL Server 2000 5 October 16th, 2004 12:48 PM
Enable auto numbering in an existing table pankaj_daga Oracle 1 June 30th, 2004 05:02 PM
select into non-temp table? (existing) nlicata SQL Server 2000 3 November 7th, 2003 03:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.