Results 1 to 2 of 2

Thread: Table structure copying

  1. #1
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    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?


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact