Results 1 to 2 of 2

Thread: SQL Update Statement

  1. #1
    Join Date
    Apr 2003
    Posts
    1

    SQL Update Statement

    How can I update 2 fields from 2 different tables? If this isn't possilbe how else could I do it?
    Thx for your help.

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Are you using SQL Server?

    You can use

    update t set c1=t1.c1, c2 = t2.c2
    from t1, t2, t
    where ....

Posting Permissions

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