pgsql: insert data to another unrelated table.

sql = """

insert
   into
   public.bounced_emails (id,
   email_address)

select 
   id,
   email_bounced

from 
   email_0365_main 

where
   email_bounced is not null;
"""

Leave a Reply

Your email address will not be published. Required fields are marked *