摘要:
declare my_cursor cursor scroll dynamic /*scroll表示可随意移动游标指针(否则只能向前),dynamic表示可以读写游标(否则游标只读)*/
for
select userid,com_sex from wj_user_move where com_reg_time<'2007-10-14 11:15:37'
open my_cursor
declare @userid sysname
declare @comsex sysname
fetch next from my_cursor into @userid,@comsex
while(@@fetch_status=0)
begin
print '姓名: ' + @userid
update wj_user set 此处阅读全文