SQL server select and update

  • Hi all,

    I need this quickly to give to my boss and wondering if anyone could help:

    I have three fields in table called "Abs", the fields are "Tpc", "Prp, "Frwk", "Fndgs", "Title" and "Mthds".  These fields are in the backup database and what I need to do is this:

    I need to do a select query to get these fields from the backup database, but then I need to do an update with the values returned from the select query and I would like to know how to do this.

    btw, its sql server 2000.

  • David

    Not sure exactly what you're asking for, but here's a guess:

    insert into MyDB.dbo.Abs (Tpc, Prp, Frwk, Fndgs, Title, Mthds)

    select Tpc, Prp, Frwk, Fndgs, Title, Mthds from BackupDB.dbo.Abs

    John

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

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