针对于已查询出数据结果, 且在程序中执行sql命令, 而非数据库中的存储过程
insert into tablename (column1, column2, column3, column4, column5)
select value1, value2, value3, value4, value5
where not exists (select primaryname from tablename where primaryname = primaryvalue)
针对于已查询出数据结果, 且在程序中执行sql命令, 而非数据库中的存储过程
insert into tablename (column1, column2, column3, column4, column5)
select value1, value2, value3, value4, value5
where not exists (select primaryname from tablename where primaryname = primaryvalue)