Re: [PHP] Join question [solved]
- From: dmagick@xxxxxxxxx (Chris)
- Date: Fri, 30 Nov 2007 14:00:54 +1100
Out of curiosity, what SQL server (and version) are you using? I
currently have MySQL 5.0.33 on my dev box and I had no problem with the
query I gave you. Perhaps it's a version issue. There really shouldn't
be a problem updating a table that also occurs in the select query since
the select query should take place before the insert.
He wasn't doing an insert/select, he was doing an update with two tables joined together.
<copy>
I thought that --
UPDATE user1 u1, user2 u2
SET u1.login = u2.login, u1.password = u2.password
WHERE u1.username = u2.username
-- would work, but it don't.
--
Postgresql & php tutorials
http://www.designmagick.com/
.
- Follow-Ups:
- Re: [PHP] Join question [solved]
- From: Robert Cummings
- Re: [PHP] Join question [solved]
- References:
- Re: [PHP] Join question
- From: Wolf
- Re: [PHP] Join question
- From: Robert Cummings
- Re: [PHP] Join question
- From: tedd
- Re: [PHP] Join question [solved]
- From: tedd
- Re: [PHP] Join question [solved]
- From: Robert Cummings
- Re: [PHP] Join question
- Prev by Date: Re: [PHP] Join question
- Next by Date: Re: [PHP] Rewind foreach loop
- Previous by thread: Re: [PHP] Join question [solved]
- Next by thread: Re: [PHP] Join question [solved]
- Index(es):