|
| Re: Update |
 |
21 Nov 2007 16:01:44 -0700 |
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.
--
|
| Post Reply
|
| Update |
 |
Thu, 22 Nov 2007 01:12:03 +020 |
IB 6,5
Isnt it possible something like below
UPDATE T1 SET (F1, F2, F3, F4 )
SELECT F1, F2, F3, F4 FROM T2
Thank you.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|