Results 1 to 4 of 4

Thread: How to copy one table data into another table directly?

  1. #1
    Join Date
    Oct 2008
    Posts
    101

    How to copy one table data into another table directly?

    I have One master table where lots of information is already stored but it some kind of overburden has happened now I want to transfer this data to another table, so how do I transfer data from one table to another.

  2. #2
    Join Date
    Feb 2006
    Posts
    98

    Re: How to copy one table data into another table directly?

    select * into databasename.<TableName> from (select * from databasename.<TableName>) or you may also try this simple statement for your data transfer select * into t2 from t1 this copy data from table t1 to table t2, Instead of copying, insert rows into another table such that you map user ids with the primary keys of those selected rows.

  3. #3
    Join Date
    Oct 2008
    Posts
    101

    Re: How to copy one table data into another table directly?

    The table rows already exist, I do not need to insert rows. i.e How to copy one table data into another table directly? I need to 'copy rows' to overwrite what is currently in the existing rows with what is read from the other table rows.

  4. #4
    Join Date
    Feb 2009
    Posts
    105

    Re: How to copy one table data into another table directly?

    If the table rows already exist, then you do not need to copy anything either. So, if you have table A and table B. Syntax to copy the structure of the one table into another table. syn: select * into newtablename from oldtablename where false conditionTable B has some rows that were copied from table A. The rows in table A have some changes to their content. You now want to update those rows in table B?

Similar Threads

  1. Replies: 5
    Last Post: 27-08-2011, 10:53 AM
  2. Link a Table to another Table to Drop Down In Main Table
    By himeshRES in forum Windows Software
    Replies: 6
    Last Post: 11-12-2010, 02:01 PM
  3. Replies: 4
    Last Post: 30-11-2010, 03:01 AM
  4. How to copy a pivot table into a 2 dimensional table ?
    By Udyami in forum Windows Software
    Replies: 4
    Last Post: 27-11-2010, 11:35 PM
  5. To convert a pivot table to a flattened table in MS Excel
    By zeemga in forum Windows Software
    Replies: 3
    Last Post: 27-11-2010, 06:48 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,483,296.10999 seconds with 17 queries