updating a table using another table
Posted in 1999
Topics: General Discussion
Justin Tsui — — source: Informix-list mailing list archive (1991-1998)
Is there a way to do this???
update tableB set tableB.fieldA = tableA.fieldA where tableA.fieldB =tableB.fieldB
↪ replying to Justin Tsui
Steven Wilcoxon — — source: Informix-list mailing list archive (1991-1998)
Currently you have to:
Set (field1, field2,...) = ((SELECT field1, field2, ... FROM ... WHERE
xxx = yyy)
and the xxx = yyy is required to select 0 or 1 records
S.W.
Justin Tsui <justin_tsui@worldnet.att.net> wrote in message
news:7rqul4$31c$1@bgtnsc01.worldnet.att.net...
> Is there a way to do this???
>
> update tableB set tableB.fieldA = tableA.fieldA where tableA.fieldB => tableB.fieldB
>