Subject | Re: [firebird-support] Copying data from one table to another |
---|---|
Author | Alexandre Benson Smith |
Post date | 2008-10-13T22:43:38Z |
Ed Dressel wrote:
Client_ID, 0, PhoneNumber from ClientInfo
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br
> I need to move data (e.g PhoneNumber) from one table (ClientInfo) to aInsert into PersonInfo (Client_ID, PersonType, PhoneNumber) select
> different table (e.g. PersonInfo) with a common ID (Client_ID) field
> and a condition on the destination table (PersonType=0).
>
> ClientInfo:Client_ID PhoneNumber --> PersonInfo:Client_ID,
> PersonType=0, PhoneNumber
>
> Is there a way to do this with a SQL statement, or do I need a stored
> proc?
>
> Thanks
> Ed Dressel
>
Client_ID, 0, PhoneNumber from ClientInfo
see you !
--
Alexandre Benson Smith
Development
THOR Software e Comercial Ltda
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br