我在做一个批处理。在我的过程中,我构建了一组插入查询语句,并将从我的应用程序运行。我不会使用sql事务并且想要跳过引发错误的语句。sql server跳过一次插入多行的错误
例如:
create table test
(
test varchar(20)
)
insert into test (test) values ('test1'); -- 1 row affected
insert into test (test) values ('test2'); -- 1 row affected
insert into test (test) values ('a' + 333); -- This will throw error while executing and i ---want to skip this
insert into test (test) values ('test4'); -- This should be affected as per my requirement
是否有可能这样类型的方法?