create table #t(Mac varchar(50),CompanyId varchar(50),CompanyName varchar(50),FtpParameter varchar(50))
IF NOT EXISTS(SELECT * FROM #t WHERE MAC='aa:22:cc:22:ee:ff')
INSERT INTO #t(Mac,CompanyId,CompanyName,FtpParameter) Values('aa:22:cc:22:ee:ff','00101','aabbcc','192.168.123.11|21|abc|abc')
select * from #t
-- 2009-10-20 11:09:55 --
IF NOT EXISTS(SELECT * FROM #t WHERE MAC='aa:22:cc:22:ee:ff')
INSERT INTO #t(Mac,'192.168.123.11|21|abc|abc')
/* Error message: sql script is wrong
*/
如下图所示:
未找到原因。。
发贴求助,未果。。