I want to implement a query similar to this in mysql:
[CODE=mysql]
insert into table1 (field1)
(select t2.field2
from table2 t2
where t2.field3="stri ng" and t2.field4=table 1.field4)
[/CODE]
the reference to table1 from the inner query (table1.field4) does not work.
Is there a way to achieve this?
Thank you.
[CODE=mysql]
insert into table1 (field1)
(select t2.field2
from table2 t2
where t2.field3="stri ng" and t2.field4=table 1.field4)
[/CODE]
the reference to table1 from the inner query (table1.field4) does not work.
Is there a way to achieve this?
Thank you.
Comment