0

I did

SELECT F.id
FROM ftable F 
  INNER JOIN dtable D ON (F.id= D.id) 
WHERE D.email = 'abc@abc.com';

now I need to do a insert in a ftable column using the select result as the where indicator.

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
lufizi
  • 403
  • 2
  • 7
  • 14

1 Answers1

0

You can simply insert those selected values by putting insert into before ur select.

Insert into ftable
    SELECT F.* FROM ftable F 
                INNER JOIN dtable D ON (F.id= D.id) 
                WHERE D.email = 'abc@abc.com';
Rams
  • 2,129
  • 1
  • 12
  • 19