Pentaho kettle : how to execute "insert into ... select from" with the sql script step? -
i discovering pentaho di , stuck problem :
i want insert data csv file custom db, not support "insert table" step. use sql script step, 1 request :
insert mytable select * myinput
and transformation :
i don't know how data csv injected in "myinput" field.
could me ?
thanks lot :)
when first edit sql script step, click 'get fields' button. going load parameters(fields csv) box on bottom left corner. delete parameters(fields) don't want insert.
in sql script write query question marks parameters in order.
insert my_table (field1,field2,field3...) values ('?','?','?'...);
mark checkboxes execute each row
, execute single statement
. that's it. let me know if have more questions , if provide sample data i'll make sample ktr file at.
Comments
Post a Comment