Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Table structure copying

This is a discussion on Table structure copying within the Oracle forums, part of the Databases category; If we want to test a procedure involving calculations and updating data we are creating a duplicate file as Create table xxx as select * from tablename. If any thing ...

Go Back   Geeks Talk > Databases > Oracle
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Oracle Oracle 9i & Oracle 10g Knowledge Base Learn and Share Oracle Technology related articles, white papers, tutorials / study materials, example codes, FAQ's, Tips and Tricks.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-28-2007
Expert Member
 
Join Date: Sep 2007
Posts: 738
Thanks: 22
Thanked 67 Times in 65 Posts
krishnaindia2007 is on a distinguished road
Table structure copying

If we want to test a procedure involving calculations and updating data we are creating a duplicate file as

Create table xxx
as select * from tablename.

If any thing goes wrong we are droping the existing table and then renaming xxx as actual table.

But here the problem is while creating table xxx it is not copying base table constriants, triggers and indexes. How to copy a table along with its constraints , triggers and indexes?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-28-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: Table structure copying

When creating a new table by copying from an existing one it does not copy the constriants, triggers and indexes. You ned to maually define constriants, triggers and indexes.
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Query to find structure of a table Geek_Guest SQL 16 07-07-2009 04:35 AM
Creating a table by copying another table's structure Allan Paul Oracle 19 04-17-2009 06:03 AM
How to view the structure of the table Subashini.Ramasamy SQL Server 14 11-26-2007 07:58 AM
copy the Table Structure vcyogi SQL Server 3 08-04-2007 02:43 AM
about copying bookmarks.... psuresh1982 Web Design 0 07-09-2007 08:54 AM


All times are GMT -4. The time now is 08:19 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved