欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

sqlserver 游標(biāo)的簡(jiǎn)單示例

 更新時(shí)間:2008年10月01日 00:02:53   作者:  
比較簡(jiǎn)單的例子,學(xué)習(xí)sqlserver游標(biāo)
Declare @Id varchar(20)
Declare @Name varchar(20)
Declare Cur Cursor For
select substring(id,0,7) as id,name from temp1
Open Cur
Fetch next From Cur Into @Id,@Name
While @@fetch_status=0
Begin
Update temp Set [c3]=@Name where [id] like @Id+'%'
Fetch Next From Cur Into @Id,@Name
End
Close Cur
Deallocate Cur

相關(guān)文章

最新評(píng)論