INSERT INTO tempdb2.dbo.base(pid,url,refurl)
VALUES(12,'http://','refurl')
where url not in
(select url from tempdb2.dbo.base)
这样写不对,运行不过去,但我又想不出别的招,请大家帮看一下,其实我是想插入一行数据,条件是要插入的url不在目的表中
VALUES(12,'http://','refurl')
where url not in
(select url from tempdb2.dbo.base)
这样写不对,运行不过去,但我又想不出别的招,请大家帮看一下,其实我是想插入一行数据,条件是要插入的url不在目的表中