--查找姓名、性别、年龄、地址、电话相同的员工记录。select count(id) as
id_count, name, sex, birthday, address, telfrom staffgroup by name, ...
分类:
其他好文 时间:
2014-05-01 13:57:05
阅读次数:
314
W3School
中有关于正则表达式的全面介绍:http://www.w3school.com.cn/jsref/jsref_obj_regexp.asp1、什么是正则表达式?正则表达式有什么用?
知道正则表达式有什么用,是学习它的最好动力。 正则表达式跟平时用的字符串操作功能函数类似。功能比它强....
分类:
编程语言 时间:
2014-05-01 02:35:55
阅读次数:
423
我写的memchr:1 void *memchr(const void *buf, char ch,
unsigned count){2 unsigned int cnt = 0;3 while(*(buf++) != ch && cnt
count)5 ret...
分类:
其他好文 时间:
2014-05-01 00:50:10
阅读次数:
306
Quick install guide1.1 Install Python, it works
with Python2.6, 2.7, 3.2, 3.3. All these version of Python include a lightweight
database SQLite, so y...
分类:
其他好文 时间:
2014-04-30 23:14:34
阅读次数:
566
今天工作当中遇到一个问题:统计信息并导出EXcel
报表。刚开始只做了统计信息:如下图请看最后一列的数据。我当时想都从数据库里取出来,但是由于我能力有限没有做出来。先贴下后来写的SQL 语句。alter
PROCEDURE spread_GetAuthoInfoByStatistics(@Count...
分类:
数据库 时间:
2014-04-30 23:07:30
阅读次数:
670
paip.元数据驱动的转换-读取文件行到个list理念 uapi java php python总结
#两个思路
1.思路如下:使用file_get_contents()获取txt文件的内容,然后通过explode()把获得的字符串转化为数组。获得数组长度可以使用count()函数
2.使用按照行读取api
在正则表达式中,有一个\n是newline的意思,又有一个\r是carri...
分类:
编程语言 时间:
2014-04-28 10:46:40
阅读次数:
304
直接上存储过程、函数
--执行不带参数但带返回值的存储过程
CREATE OR REPLACE PROCEDURE proc_getUserCount(v_totalCount OUT NUMBER) AS
BEGIN
SELECT COUNT(*) INTO v_totalCount FROM vote_user;
END;
--测试不带参数但带返回值的存储过程
DECLARE
v_t...
分类:
其他好文 时间:
2014-04-28 10:25:43
阅读次数:
461
This articles will show how to avoid the leak of the memory in c++, I just use this articles to summerise something, and show how awesome my English is. If someone need Chinese version, just told me....
分类:
编程语言 时间:
2014-04-27 22:22:19
阅读次数:
430
看了一下Linux 0.11版本write的实现,首先它在标准头文件unistd.h中有定义
int write(int fildes, const char * buf, off_t count);
接下来看write.c
/*
* linux/lib/write.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__...
分类:
系统相关 时间:
2014-04-27 21:45:04
阅读次数:
523
Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!
解决方法:
setenforce 0...
分类:
移动开发 时间:
2014-04-27 21:18:05
阅读次数:
450