Subject | Re: [firebird-support] Re: Copying data from one table to another |
---|---|
Author | Kjell Rilbe |
Post date | 2008-10-13T23:29:57Z |
Ed Dressel wrote:
set "PhoneNumber" = (
select "PhoneNumber"
from "ClientInfo"
where "ClientInfo"."Client_ID" = "PersonInfo"."Client_ID"
)
where "PersonType" = 0;
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
> > Insert into PersonInfo (Client_ID, PersonType, PhoneNumber) selectupdate "PersonInfo"
> > Client_ID, 0, PhoneNumber from ClientInfo
>
> Thanks Alexandre--but I need to clarify.
>
> The record in the destination table will already--I just need to move
> the data to the existing record.
>
> I'm thinking I need a stored proc. Right?
set "PhoneNumber" = (
select "PhoneNumber"
from "ClientInfo"
where "ClientInfo"."Client_ID" = "PersonInfo"."Client_ID"
)
where "PersonType" = 0;
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64