`
sun201200204
  • 浏览: 301257 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
文章: http://wangcheng.iteye.com/blog/190201   http://blog.csdn.net/hivon/archive/2008/04/13/2288770.aspx   http://docs.codehaus.org/display/GRAILS/Chinese+IDE+Integration http://hi.baidu.com/ssyuan/blog/item/c972201fea2494cca686694b.html   将工作目录设置为 ${project_loc}改为:${workspace_loc:/FirstGrails} //Fir ...
  <html> <head> <script language="javascript"> var infoMap = new Object() ; function number(){ var obj = document.getElementById("mySelect"); //obj.options[obj.selectedIndex] = new Option("我的吃吃","4"); //在当前选中的那个的值中改变 ...

js中取整

    博客分类:
  • java
  Math.ceil(x):比x大的最小值。     Math.round(x):四舍五入。     Math.floor(x):比x小的最大值。     Math.round(x)返回long型,其余的返回double   型。
You have been given 2 special, extremely rugged Xboxes. You are in an office building that is 100 stories high. Using the fewest possible number of drops from windows in your office building, determine the highest floor you can drop an Xbox from and have it survive: for example, they might be able to ...
(js中的方法) 用replace 方法 语法 stringObj.replace(rgExp, replaceText) replace 方法的语法包括下述部分: 部分 描述 stringObj 必选项。要执行该替换的 String 对象或文字。该对象不会被 replace 方法修改。 rgExp 必选项。描述要查找的内容的一 ...
<script> var asfman = {}; asfman.dict = { "keys": function(obj){ var b = []; for(var i in obj){ b.push(i); } return b; }, "values": function(obj){ var b = []; for(var i in obj){ b.push(obj[ ...
内容: import java.math.BigDecimal; import java.text.DecimalFormat; public class TestGetInt{ public static void main(String[] args){ double i=2, j=2.1, k=2.5, m=2.9; System.out.println("舍掉小数取整:Math.floor(2)=" + (int)Math.floor(i)); System.ou ...
要小心的坏习惯1:喜欢辩解   说明: 聪明人都知道辩解不是好事,大多数人也都不想辩解。但是同样的话在特定场合对特定的人说,有时就像辩解一样,而说话人可能还未意识到。 危害程度: 极高。 危害: 让人感觉自己在逃 ...
问题: 我的查询一段时间内的每个状态的时间。(每天以7点半作为分割点) 数据库: oracle 表名:table 字段: 状态:status       时间: mydate 比如我要查询2008-12-01到2008-12-09之间的数据:   select status,mydate from table where mydate-7.5/24 > to_date('2008/12/01','YYYY/MM/DD') and mydate-7.5/24 < to_date('2008/12/09','YYYY/MM/DD') order by mydate;  即附件中得到 ...
效率高: select to_date('200809','yyyymm')+(rownum-1) s_date from dual connect by rownum<=last_day(to_date('200809','yyyymm')) - to_date('200809','yyyymm')+1   效率低: select to_date('200902','yyyymm')+(rownum-1) s_date from all_tables where rownum <= ( select last_day(to_date('200902','yyyymm') ...
假定原数据分别在A1和B1单元格,将计算结果分别放在C1、D1和E1单元格。 C1单元格公式如下: =ROUND(B1-A1,0) D1单元格公式如下: =(B1-A1)*24 E1单元格公式如下: =(B1-A1)*24*60 注意:A1和B1单元格格式要设为日期,C1、D1和E1单元格格式要设为常规.

相邻记录之差

 假设注水记录表如下:     t_zsjl(     jh   --井号     rq   --日期     zsl--注水量     )     你是要求出同一井,相邻两天注水量差大于1的记录。         看看这样行不行:         select   a.jh   井号,a.rq   日期,a.zsl   当日注水量,b.zsl   次日注水量,a.zsl-b.zsl   两日注水量差   from     t_zsjl   a,     t_zsjl   b     where   a.jh=b.jh   and   a.rq=b.rq+1   and   abs(a.zsl- ...
SELECT TO_DATE ('10/27/2003 11:00 A.M.', 'MM/DD/YYYY HH:MI A.M.','NLS_DATE_LANGUAGE = American') FROM DUAL
在eclipse创建了一个java project,使用到struts。但是打开struts-config.xml的时候总是出现一个错误的提示,老感觉不爽,终于在网上找到了解决的办法:   在项目下的.project文件里添加一行代码: </projectDescription> ...... </natures> ......  <nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature> </natures> </projec ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> New Document </title> <meta name="Generator" content="EditPlus"> <meta name="Author" content=""> <meta name="Keyword ...
Global site tag (gtag.js) - Google Analytics