问题现象: | 点击工资变动时,系统提示非法错误。 |
问题原因: | SQL跟踪发现有错误的多余工资项目。 |
解决方案: | 利用网上已发布的删除错误多余工资项目的SQL语句更正。 declare fq cursor for SELECT [name] FROM [syscolumns] where id=object_id(N'WA_GZdata')and [name] like 'f_%' and cast(substring([name],3,4) as int) not in(select igzitem_id from wa_gztblset) go declare @tem nchar(100),@temp nchar(10) open fq fetch next from fq into @temp while @@fetch_status=0 begin set @tem='alter table wa_gzdata drop column '+@temp execute sp_executesql @stmt=@tem select @tem fetch next from fq into @temp end close fq DEALLOCATE fq |
相关补丁: | |
版本: | 8.51A |
模块: | 工资管理 |
产品: | U8SQL |
问题名称: | 工资变动时出错。 |
最后更新: | 2005-06-28 00:00:00 |