Article View: borland.public.interbase.sql
Article #457Re: Update
From: Bill Todd
Date: Wed, 21 Nov 2007 23:01
Date: Wed, 21 Nov 2007 23:01
17 lines
1340 bytes
1340 bytes
Serra wrote: > Isnt it possible something like below > > UPDATE T1 SET (F1, F2, F3, F4 ) > SELECT F1, F2, F3, F4 FROM T2 No. There is no way for the database server to know which row from the select to match with a particular row in T1. You can do: UPDATE T1 SET AFIELD = (SELECT SOMEFIELD FROM T2 WHERE T2.PK = T1.PK) The SELECT must return a single row. -- Bill Todd (TeamB)
Technical Details
Message-ID:
<4744c6e8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4744bb40@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,70e2a80042ba1d0d
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bill Todd" <no@no.com>
Subject: Re: Update
Newsgroups: borland.public.interbase.sql
References: <4744bb40@newsgroups.borland.com>
Organization: The Database Group, Inc.
User-Agent: XanaNews/1.18.1.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
NNTP-Posting-Host: 65.118.176.23
Message-ID: <4744c6e8@newsgroups.borland.com>
Date: 21 Nov 2007 16:01:44 -0700
X-Trace: newsgroups.borland.com 1195689704 65.118.176.23 (21 Nov 2007 16:01:44 -0700)
Lines: 17
X-Authenticated-User: btodd
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail