I want to write a SQL statement something like
insert into mytable column1=value1
and
((column2,column3,column4)
(select filed1, filed2,filed3
from anothertable where filed4=a_varible))
I am using Mysql. The statement above only expresses what I am going to achieve. Is it possible? Is there a way to achieve this?