List:General Discussion« Previous MessageNext Message »
From:August Zajonc Date:April 23 2000 9:47pm
Subject:UPDATE using values from other table.
View as plain text  
Mysql doesn't like the following:

UPDATE ActiveSessions LEFT JOIN Users ON Users.UserID =
ActiveSessions.UserID SET ActiveSessions.Status = Users.Status;
or
UPDATE ActiveSessions, Users SET ActiveSessions.Status = Users.Status WHERE
Users.UserID = ActiveSessions.UserID;

Is this something that looks like it SHOULD work?

AZ

Thread
Table Design Questionlkeeton20 Apr
  • undeleting tableGraeme B. Davis20 Apr
    • Re: undeleting tablesinisa20 Apr
    • Re: undeleting tableThimble Smith20 Apr
      • UPDATE Using values from another table...August Zajonc24 Apr
      • UPDATE using values from other table.August Zajonc24 Apr
        • Re: UPDATE using values from other table.sinisa24 Apr
  • Re: undeleting tablesasha20 Apr
    • RE: undeleting tableMark D Wolinski20 Apr
      • Re: undeleting tableThimble Smith20 Apr
        • Re: undeleting tableJeremy Cole20 Apr