Sử dụng insert ... select truy vấn và đặt các giá trị đã biết vào select :
insert into table1
select 'A string', 5, idTable2
from table2
where ...
Sử dụng insert ... select truy vấn và đặt các giá trị đã biết vào select :
insert into table1
select 'A string', 5, idTable2
from table2
where ...