Subject | Re: [firebird-support] Re: Copying data from one table to another |
---|---|
Author | Alexandre Benson Smith |
Post date | 2008-10-13T23:31:46Z |
Ed Dressel wrote:
PersonInfo P
set
P.PhoneNumber = (Select C.PhoneNumber from ClientInfo C where
C.Client_ID = P.Client_ID)
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br
>> Insert into PersonInfo (Client_ID, PersonType, PhoneNumber) selectUpdate
>> 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?
>
>
PersonInfo P
set
P.PhoneNumber = (Select C.PhoneNumber from ClientInfo C where
C.Client_ID = P.Client_ID)
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br