> insert into person (first_name, second_name) > select inp.* from inp > "); The last strings should be: insert into person (first_name, second_name) select inp.* from inp ", first_names, last_names);