when we create a new record in sugarcrm the fields will be inserted into two or more table how this can be achieved from MySQL query
i have two tables a_vendor(id,name) and a_vendor_cstm(id_c,email_c) i need to insert into two table at the same in order to have same id as
insert into a_vendor (id,name) values (auto_generated,'myname');
insert into a_vendor (id_c,email_c) values (auto_generated_same_as_id,'my email');