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
INSERT INTO productHistory (id_h, id_product, name) (SELECT product_history_seq.nextval, id_product, name FROM product);
That works