sqlserver 判断当前数据是否存在 不存在则插入
insert into product_agent(productId,agentId)
select top 1 'A41789B1-4CA3-48CC-82A4-2F5BCE23D424','9BAC02BD-F551-4105-95D6-E70008C5C919' from product_agent
where (select count(1) from product_agen
原创
2014-12-19 17:53:09 ·
5584 阅读 ·
1 评论