I have a table product(id_product , name );
I have another one: productHistory (id_H , id_product , name);
I wanna create a query (db2) to insert all the row
I believe you are looking for:
insert into productHistory ( id_h , id_product , name ) select next value for product_history_seq , id_product , name from product ;