Reading from one table directly into another

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Reading from one table directly into another

    Is there a way to get a row from one table and write it directly into
    another table? Most of the columns are named the same, but their are a few
    that need to be ignored in the source table and a few which must be filled
    in through user-entered values in the second table. Any links or code
    examples would be great.

    Thanks in advance,
    Jacob


    Jacob Guest

  2. Similar Questions and Discussions

    1. PDF directly to the printer
      Hi guys. How can I send a PDF document directly to the printer without displaying the Print dialog window? It's a Xerox 8500 printer with...
    2. phpMyAdmin not reading table contents
      I'm running phpMyAdmin 2.5.3 / MySQL 4.0.14 / PHP 4.3.3 / Apache 1.3.20 phpMyAdmin is installed and appears ok at first, I can login, select...
    3. Reading Foreign Keys From an Access Table with ADO
      I try to analyse and synchronize two databases with an asp script. my problem is: i have to get all columns from a table, which are foreign keys...
    4. Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table.
      We are getting this error after clearing the web.config of database infomation - even after using the wizard to re-enter the information. I could...
    5. Reading Textbox values from table and validating entry
      I have 2 things that I'm stuck on and would appreciate some assistance. 1. How can I read a value from a table and use it to populate a textbox...
  3. #2

    Default Re: Reading from one table directly into another

    select into

    Here's the first link that comes up in Google.
    [url]http://www.devguru.com/Technologies/jetsql/quickref/select_into.html[/url]

    Ray at work

    "Jacob" <yak2016@comcast.net> wrote in message
    news:u3LKqE$PDHA.4024@tk2msftngp13.phx.gbl...
    > Is there a way to get a row from one table and write it directly into
    > another table? Most of the columns are named the same, but their are a
    few
    > that need to be ignored in the source table and a few which must be filled
    > in through user-entered values in the second table. Any links or code
    > examples would be great.
    >
    > Thanks in advance,
    > Jacob
    >
    >

    Ray at Guest

  4. #3

    Default Re: Reading from one table directly into another

    Jacob wrote:
    > Is there a way to get a row from one table and write it directly into
    > another table? Most of the columns are named the same, but their are
    > a few that need to be ignored in the source table and a few which
    > must be filled in through user-entered values in the second table.
    > Any links or code examples would be great.
    >
    > Thanks in advance,
    > Jacob
    Well, this will vary from database to database in minor ways, but basically:
    insert into table1(col1,col2, ... colN)
    select col1,col2, ... colN FROM table2
    WHERE <filter criteria>

    Bob Barrows


    Bob Barrows Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139