标签:name 判断 col sql 数据 exists primary where not
针对于已查询出数据结果, 且在程序中执行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命令同时判断目标表中是否存在目标数据
标签:name 判断 col sql 数据 exists primary where not
原文地址:https://www.cnblogs.com/JosephBee/p/9755050.html