悉野小楼

导航

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页

2013年6月20日

[转]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 悉野 阅读(276) 评论(1) 推荐(0)

2013年6月13日

[转]_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 悉野 阅读(261) 评论(0) 推荐(0)

2013年4月9日

[转]VS 2010项目中添加lib库

摘要: 转自http://blog.csdn.net/w174504744/article/details/7368169VS 2010项目中添加lib库应用程序使用外部库时需要进行加载,两种库的加载本质上都是一样:提供功能和功能的定义。vs2005 c++ 项目设置外部库方法如下:1. 添加编译所需要(依赖)的 lib 文件 在“项目->属性->配置属性->连接器->输入->附加依赖项”里填写“winsock.lib”,多个 lib 以空格隔开。等同于“#pragma comment(lib, "*.lib") ”语句。2. 添加库(libs)文件目 阅读全文

posted @ 2013-04-09 17:35 悉野 阅读(419) 评论(0) 推荐(0)

2013年3月23日

linx niginx下php无法创建文件夹及文件

摘要: 按网上说, 使用chmod 777 www, 修改www文件夹, 其它组的权限, 但还是没效果, 不能创建文件.======================正确操作:1. 使用ps -aux查看了下nginx的运行用户名是www-data.2. 用chown -R www-data www 改变www文件夹的所有者.======================网上还有说修改www-data的权限, 就是提高nginx用户的运行权限.我这儿是用secureCRT root登录, 上传的php文件所有者是root, 其它用户不能写入, 所以www-data不能运行php创建文件或文件夹了.pstr 阅读全文

posted @ 2013-03-23 17:07 悉野 阅读(586) 评论(0) 推荐(0)

2013年3月22日

jquery radio快速度取值

摘要: $(“input[name='radio_name']:checked”).val();jquery1.3版本之前属性前面会加个@, 现版本的不用 阅读全文

posted @ 2013-03-22 12:05 悉野 阅读(141) 评论(0) 推荐(0)

2013年1月8日

CHM文件打不开

摘要: regsvr32itss.dll 阅读全文

posted @ 2013-01-08 11:43 悉野 阅读(129) 评论(0) 推荐(0)

2012年12月20日

SqlServer游标

摘要: declare @id intdeclare my_cursor cursorfor select id from mytableopen my_cursorfetch next from my_cursor into @idwhile(@@fetch_status=0)beginprint @idfetch next from my_cursor into @idendclose my_cursordeallocate my_cursor定义游标, 打开游标, 关闭游标, 清除游标 阅读全文

posted @ 2012-12-20 12:08 悉野 阅读(164) 评论(0) 推荐(0)

2012年12月17日

SqlServer查询所有表名 查询表的所有列名

摘要: 说明:列出数据库里所有的表名selectnamefromsysobjectswheretype='U'说明:列出表里的所有的列selectnamefromsyscolumnswhereid=object_id('TableName') 阅读全文

posted @ 2012-12-17 11:29 悉野 阅读(781) 评论(0) 推荐(0)

2012年11月26日

IIS控制txt文件的访问

摘要: Internet来宾用户 为访问网页的用户.network service用户为IIS服务器程序用户, 如.net程序.禁止iis读取某文件, 可将文件或文件夹的权限中Internet来宾用户读取权限改为拒绝, 但运行在服务器上的程序还是可以访问这个文件的. 阅读全文

posted @ 2012-11-26 14:54 悉野 阅读(3476) 评论(0) 推荐(0)

2012年10月30日

在查询结果中查询

摘要: 查询结果放到临时表中, 在临时表中查询.select count(*) as c, gameserverid into #tmp from gms_data group by [filename], gameserverid having count(*) > 1select * from #tmp 阅读全文

posted @ 2012-10-30 14:03 悉野 阅读(137) 评论(0) 推荐(0)

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页