Mass Update

  • I am still a novice with SQL 7.0. I have an equipment database for PC. I want to 'mass update' records and am not sure what is the best way.

    joe

  • Can you provide the table schem (DDL) as well as what changes you want to make. May be 2-3 lines of sample before and after data.

    We can then help.

    Steve Jones

    steve@dkranch.net

  • Here it is simplified.

    I have a table for PC.

    asset_tag, model_name, location_name, equipment_status

    I have a list of 40 PC Asset Tags that need their location changed.

  • Try something like this:

    UPDATE tblPC SET location_name = 'fillintheblank' WHERE asset_tag IN ('List','Of','Asset','Tags','Here')

    as long as all the locations will be the same. But you can use for common groups as well just more update queries required.

    "Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)

  • That did it. Thank you very much.

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

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