copying records

  • I am trying to write a store procedure to copy all records from table A to table B where they are below than a certain date.

    Any help in script writing will be apprecitad.

    Thanks

     

     


    Tajammal Butt

  • select * into tableB from tablea where date < ''

     --if you don't have tableb created

    Insert into tableb select * from tablea where data < ''

    -- If tableb already exists.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply