Re: Is this a bug?
От | Jack Gao |
---|---|
Тема | Re: Is this a bug? |
Дата | |
Msg-id | 9srnih$10qq$1@news.tht.net обсуждение исходный текст |
Ответ на | Re: Is this a bug? (Carl van Tast <vanTast@Pivot.at>) |
Ответы |
Re: Is this a bug?
|
Список | pgsql-sql |
"Carl van Tast" <vanTast@Pivot.at> wrote in message news:73t1vtk61pcsob9pa0p32a9eou3a31tolh@4ax.com... > On Mon, 12 Nov 2001 21:20:44 -0800, "Jack Gao" <wei@gaofamily.org> > wrote: > > >Update tblUserConfig Set Value = '1' From tblUserConfig As a Join > >tblConfigItem As b On a.ItemID = b.ID And b.Scope = 3 Where a.UserID = 1 And > >b.Name = 'UserClassID'; > > > >It always update all records in tblUserConfig table!!! > > Jack, > > don't include the table you want to update in the FROM clause. Just > try: > > Update tblUserConfig > Set Value = '1' > From tblConfigItem As b > Where tblUserConfig.ItemID = b.ID > And b.Scope = 3 > And tblUserConfig.UserID = 1 > And b.Name = 'UserClassID'; > > Kind regards > Carl van Tast So, I can't use JOIN in UPDATE? Thanks for your reply Jack
В списке pgsql-sql по дате отправления: