悉野小楼

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

06 2013 档案

[转]sql利用游标循环,遍历表循环结果集
摘要:用 游标(Cursor) + While循环 的方法, 对Customers表中的CompanyName列进行遍历declare @customer nvarchar(50)declare pcurr cursor forselect distinct companyname from customersopen pcurrfetch next from pcurr into @customerwhile (@@fetch_status = 0)begin print (@customer) fetch next from pcurr into @customerendclose pcurr. 阅读全文

posted @ 2013-06-20 16:35 悉野 阅读(268) 评论(1) 推荐(0) 编辑

[转]_beginthread(), _beginthreadex()与CreateThread()的区别
摘要:http://bbs.csdn.net/topics/21693CreateThread、_beginthread和_beginthreadex都是用来启动线程的,但大家看到oldworm没有提供_beginthread的方式,原因简单,_beginthread是_beginthreadex的功能子集,虽然_beginthread内部是调用_beginthreadex但他屏蔽了象安全特性这样的功能,所以_beginthread与CreateThread不是同等级别,_beginthreadex和CreateThread在功能上完全可替代,我们就来比较一下_beginthreadex与Creat 阅读全文

posted @ 2013-06-13 11:22 悉野 阅读(250) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示