摘要:
declare @eventname nvarchar(100);set @eventname=N'公告';declare @rate decimal(9,2);declare my_cursor cursor scroll dynamicfor select EventName from dbo.PM_Event;open my_cursordeclare @event nvarchar(100);fetch next from my_cursor into @eventwhile(@@fetch_status=0)beginset @rate=dbo.F_Getsimila 阅读全文