- 博客(6)
- 资源 (10)
- 收藏
- 关注
原创 日期虚拟表
select to_char(to_date('201201010100', 'yyyymmddhh24mi') + rownum /(24*60),'yyyymmddhh24mi') from dual connect by level <= 10
2012-02-24 11:19:31 630
原创 数据库时间与时间字段比较
select SYSDATE,uptime,(SYSDATE - uptime) * 86400000/60000 diff from t_run_ctrl
2012-02-24 11:19:06 792
原创 比较两个字段的大小
--比较两个字段的大小select decode(substr(m.age - w.age, 0, 1), '-', '小于', '0', '相等', '大于') compare from man m,woman w where m.wifeid=w.id and m.adr=w.adr
2012-02-24 11:18:38 1768
原创 分钟数据按小时取平均值
select avg(t.variations), max(t.datadate), max(lpad(t.datatime,6,'0')) from t_table t where t.datadate between '20120101' and '20120131'group by t.datadate,substr(lpad(t.datatime,6,'0'),0,2)
2012-02-24 11:17:47 1123
转载 python文件操作
1,将一个路径名分解为目录名和文件名两部分a, b = os.path.split( "c:\\123\\456\\test.txt" )print aprint b显示:c:\123\456test.txt 2,分解文件名的扩展名a, b = os.path.splitext( "c:\\123\\456\\test.txt" )print apr
2012-02-20 22:22:51 573
原创 python解压缩ZIP格式文件
import zipfileimport osz = zipfile.ZipFile('C:/bin.zip', 'r')for f in z.namelist(): if z.read(f)=="": if not os.path.isdir("C:/test/"+f): os.mkdir("C:/test/"+f) e
2012-02-20 22:14:49 812
嵌入式C语言开发总结文档
2008-11-17
常用经典javascript代码集锦
2008-10-30
Symbian应用程序运行框架
2008-10-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人