分类:.Netfreamework2007-08-1410:091165人阅读评论(0)收藏举报使用ConfigurationManager类读写配置文件app.config,以下为代码:[c-sharp]viewplaincopyusingSystem;usingSystem.Configuration;staticclassProgram{staticvoidMain(){showConfig();UpdateAppSettings();showCon
系统 2019-08-12 09:27:05 2371
有一个数据库硬盘空间满了,查看发现一个dbf超大,并且不在规定的路径下,知道是一个非重要数据文件,于是删除。后来重启数据库时,SQL>startupORACLEinstancestarted.TotalSystemGlobalArea285212672bytesFixedSize1218992bytesVariableSize96470608bytesDatabaseBuffers184549376bytesRedoBuffers2973696bytesD
系统 2019-08-12 01:55:11 2371
deleteFROMtablenameaWHERErowid>(SELECTmin(rowid)FROMtablenamebWHEREb.id=a.idandb.name=a.name);select*FROMtablenameaWHERErowid>(SELECTmin(rowid)FROMtablenamebWHEREb.id=a.idandb.name=a.name);oracle查询、删除表中相同的数据
系统 2019-08-12 01:55:02 2371
模式:createorreplaceprocedure过程名(参数名参数类型,...)is变量名变量类型;begin过程内容;end过程名;/showerr;举例:createorreplaceprocedureproc_blddesignusagearea(p_buildidnumber)is/*函数功能:统计楼栋下房屋的用途、面积、套数等信息*/l_buildareabldroom.buildarea%type;l_useareabldroom.use
系统 2019-08-12 01:54:56 2371
oracle中sql语句的优化一、执行顺序及优化细则1.表名顺序优化(1)基础表放下面,当两表进行关联时数据量少的表的表名放右边表或视图:Student_info(30000条数据)Description_info(30条数据)select*fromdescription_infodi,student_infosi--学生信息表wheresi.student_id=di.lookup_code(+)anddi.lookup_type(+)='STUDENT
系统 2019-08-12 01:54:30 2371
SharePoint2010OtherVersions0outof20ratedthishelpfulRatethistopicPublished:May2010ThisprogrammingtaskshowshowtousetheUpdateListItemsmethodoftheListsWebservicetoupdateitemsinalistthroughaMicrosoftWindowsFormsapplication.UseanXmlElem
系统 2019-08-12 01:54:02 2371
Oracle数据库:刚做一张5000万条数据的数据抽取,当前表同时还在继续insert操作,每分钟几百条数据。该表按照时间,以月份为单位做的表分区,没有任何索引,当前共有14个字段,平均每个字段30个字节。当前表分区从201101到201512每月一个分区测试服务器:xeno5650,32核cpu,win2003操作系统,物理内存16G;测试工具plsql1.最开始的查询:string.Format(@"select*from(selectr.id,r.c
系统 2019-08-12 01:52:59 2371
1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断select*frompeoplewherepeopleIdin(selectpeopleIdfrompeoplegroupbypeopleIdhavingcount(peopleId)>1)2、删除表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断,只留有rowid最小的记录deletefrompeoplewherepeopleIdin(selectpeople
系统 2019-08-12 01:52:47 2371
二叉树的后序遍历递归实现/***Definitionforbinarytree*structTreeNode{*intval;*TreeNode*left;*TreeNode*right;*TreeNode(intx):val(x),left(NULL),right(NULL){}*};*/classSolution{public:voidPostOrder(TreeNode*root,vector&vec){if(root!=NULL){Pos
系统 2019-08-12 01:52:42 2371
B-Tree索引/位图索引/反向索引/函数索引/降序索引/分区索引oracle导致索引失效的情况1、使用不等于操作符2、使用isnull或isnotnull3、使用函数4、比较不匹配的数据类型5、复合索引中的前导列没有被作为查询条件6、查询的数量是大表的大部分7、对小表查询8、like"%_"百分号在前反向索引:使用数据时(常见于批量插入操作)都比较集中在一个连续的数据范围内,那么在使用正常的索引时就很容易发生索引叶子块过热的现象,严重时将会导致系统性能下
系统 2019-08-12 01:51:49 2371