Results 1 to 3 of 3

Thread: SQL Loop procedure

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2008
    Posts
    162

    SQL Loop procedure

    I need help to create a procedure that will allow me to open a table,loop through the table and for each record obtain a value in a certain field and then INSERT it into another table. the second table is empty and i am want to populate it with a value coming from all the records of the first table.

  2. #2
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: SQL Loop procedure

    Why not use INSERT INTO dest_table columns_list SELECT columns_list FROM src_table

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2008
    Posts
    162

    Re: SQL Loop procedure

    it worked. thanks a lot.

Posting Permissions

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



Click Here to Expand Forum to Full Width