(一)掌握分页存储过程例题:从Car表中查出第四页的记录,每页为三条记录。--分析--取一页数据出来select top 3 * from car--跳过n条记录--1.找出前n条的主键值select top 6 code from car order by code---2.跳过去select t...
分类:
其他好文 时间:
2015-06-03 17:15:55
阅读次数:
111
获取日期列表:
SELECT TO_CHAR(TO_DATE('2014-10-01', 'yyyy-MM-dd') + ROWNUM - 1, 'yyyyMMdd') as dayslist
FROM DUAL
CONNECT BY ROWNUM <=
trunc(to_date('2015-06-01', 'yyyy-MM-dd') -...
分类:
数据库 时间:
2015-06-03 15:46:55
阅读次数:
166
如下的语句,@start和@end就是日期类型的参数set @sql='select * from '+cast(@viewName as nvarchar) +' where rcy_rq >= '+CONVERT(nvarchar(100), @start, 121)+' and rcy_rq ...
分类:
数据库 时间:
2015-06-03 15:37:22
阅读次数:
152
(1)存储过程[1]创建存储过程(无参)create procedure ProTestAas select * from TestA--修改存储过程(有参,且为输出参数)alter procedure ProTestA@LastName varchar(10) = null outputas if...
分类:
数据库 时间:
2015-06-03 15:34:28
阅读次数:
188
SQLServer2008找出所有包含172.17.224.40的存储过程select distinct name from syscomments a,sysobjects b where a.id=b.id and b.xtype='v' and text like '%172.17.224.4...
分类:
数据库 时间:
2015-06-03 15:13:28
阅读次数:
165
没有发现Python 有现成的类似功能模块,所以昨天写了个简单的 strip_tags 但还有些问题,今天应用到採集上时进行了部分功能的完好,1. 对自闭和标签处理2. 以及对标签參数的过滤from html.parser import HTMLParserdef strip_tags(html, ...
分类:
编程语言 时间:
2015-06-03 15:11:55
阅读次数:
165
https://leetcode.com/problems/integer-to-roman/原题:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to...
分类:
其他好文 时间:
2015-06-03 15:06:51
阅读次数:
99
计算数据集的香农熵from math import logdef calcShannonEnt(dataSet): numEntries = len(dataset) labelCounts = {} for featVec in dataset: currentLa...
分类:
其他好文 时间:
2015-06-03 13:30:21
阅读次数:
113
android的m、mm、mmm编译命令的使用android源码目录下的build/envsetup.sh文件,描述编译的命令- m: Makes from the top of the tree.- mm: Builds all of the modules in the current dire...
分类:
移动开发 时间:
2015-06-03 13:23:48
阅读次数:
209
1 导言在软件开发周期中,测试和修正缺陷(defect,defect与bug的区别:Bug是缺陷的一种表现形式,而一个缺陷是可以引起多种Bug的) 的时间远多于写代码的时间。通常,debug是指发现缺陷并改正的过程。修正缺陷紧随debug之后,或者说二者是相关的。如果代码中存在缺陷,我们首先 要识别...
分类:
Web程序 时间:
2015-06-03 13:22:02
阅读次数:
189