如果上一条插入语句执行成功,获取id号

来源:互联网 发布:centos 7 minimal 编辑:程序博客网 时间:2024/06/06 18:36

    DECLARE @VisitPlantemplateid INT

    insert >>>>>>>>>>>>>

        

    IF (@@identity > 0)
    SET  @VisitPlantemplateid =  @@identity
原创粉丝点击