时间:2021-07-01 10:21:17 帮助过:4人阅读
针对于已查询出数据结果, 且在程序中执行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)
SqlServer执行Insert命令同时判断目标表中是否存在目标数据
标签:val com https serve class HERE rom tps not