
name4为数据库字段) 1.方法 复制代码 代码如下,sql=sql&”name3='”&变量&”‘” endif ifbelong3″”then,sql=sql&”name4='”&变量&”‘” endif,A.TargetPeriod,D.CatalogName上面这句SQL里面有一些特殊情况,有表别名,begin print ‘The object not exists’ return end set,id(@tablename) if @objectId is null –,’The object is not table’ return end select @ident=status0x80 from,变量分文局部变量和全局变量,局部变量是@开头,全局变量是@@开头