Re: Insert, Update and Delete with Join Tables



TADOQuery.Properties['Unique Table'].Value:='table1'
Then only table1 columns will be updated.


"Alejandro Genovesi" <alejandro.genovesi@xxxxxxxxxxxxxx> wrote in message
news:4267f6fe@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi, all
>
> I've a TADOQuery with this SQL property:
>
> Select Table1.code,
> Table1.status ,
> Table2.Name,
> Table2.age
> From Table1
> join Table2 on table1.code = table2.code
>
> .....
>
> If I try to do
>
> with ADOQuery1 do begin
> Active; := True;
> Edit;
> FieldByName ('Name') := 'xxx';
> Post;
> end;
>
> I've an error.
>
> How I can to Update o Insert with join tables?
>
> Thank you
>
>
> AD
>
>


.



Relevant Pages