delete from MSS_RECORD where GMT_CREATED BETWEEN to_date(to_char(sysdate,'yyyy-mm-dd') || ' 00:00:00','yyyy-mm-dd hh24:mi:ss') AND to_date(to_char(sys...
分类:
其他好文 时间:
2014-09-24 20:56:07
阅读次数:
214
1、创建一个对象:create or replace type sys_col_id as object(id number(38))2、定义一个数组create or replace type sys_tbl_ids as table of sys_col_id3、算出分隔符的长度,用法:spli...
分类:
数据库 时间:
2014-09-24 15:18:26
阅读次数:
342
查询系统支持最大可打开文件句柄数量:#vi /proc/sys/fs/file-max查询当前连接用户最大可打开文件句柄数量:#ulimit -a修改当前连接用户最大可打开文件句柄数量:#ulimit -f 81920修改linux内核设置最大可打开文件句柄数量:#vi /etc/sysctl.co...
分类:
系统相关 时间:
2014-09-24 14:41:16
阅读次数:
171
如何产看树莓派cpu温度: cat?/sys/class/thermal/thermal_zone0/temp 这个值除以1000,就是实际CPU温度 pi@raspberrypi?~?$?cat?/sys/class/thermal/thermal_zone0/temp
30399 温度是30.399度。我给树莓派加...
分类:
其他好文 时间:
2014-09-24 12:49:37
阅读次数:
174
原文:sqlserver查询数据的所有表名和行数//查询所有表明select name from sysobjects where xtype='u'select * from sys.tables//查询数据库中所有的表名及行数SELECT a.name AS [TABLE NAME] , ...
分类:
数据库 时间:
2014-09-24 11:02:46
阅读次数:
295
递归遍历一个目录下的所有文件和文件夹,统计各个类型文件所占的百分比 程序代码a.cpp(编译命令:g++ a.cpp -o a) #include?<stdio.h>
#include?<sys/stat.h>
#include?<sys/types.h>
#include?<unistd.h>
...
分类:
系统相关 时间:
2014-09-24 01:11:26
阅读次数:
425
1.清理前内存使用情况free -m2.开始清理 echo 1 > /proc/sys/vm/drop_caches
分类:
系统相关 时间:
2014-09-23 20:56:55
阅读次数:
236
//查询所有表明select name from sysobjects where xtype='u'select * from sys.tables//查询数据库中所有的表名及行数SELECT a.name, b.rowsFROM sysobjects AS a INNER JOIN sysind...
分类:
数据库 时间:
2014-09-23 15:46:54
阅读次数:
216
#!/usr/bin/env python#-*- coding:utf8 -*-import sysreload(sys)sys.setdefaultencoding('gbk')import urllib,urllib2import refrom bs4 import BeautifulSoup...
分类:
其他好文 时间:
2014-09-23 13:35:14
阅读次数:
194
#!/usr/bin/envpython
importos,sys,time,re,shutil
importsocket
importfcntl
importstruct
importtraceback
importcommands
#Getinterfacename
interface_path=‘/etc/sysconfig/network-scripts/‘
defLOG(info):
"""Logfiles...."""
logfile=‘/root/pxe_install.log‘
files..
分类:
编程语言 时间:
2014-09-23 10:26:55
阅读次数:
336