`
zhanyingle_1981
  • 浏览: 325571 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

2009.11.16

Date date = new Date(calc.getTime());     Calendar calendar = GregorianCalendar.getInstance();     calendar.setTime(date);      int year = calendar.get(Calendar.YEAR)       public abstract class Calendar extends Object implements Serializable, Cloneable, Comparable<Calendar> Calendar ...

2009.11.12

-------------------------- 现在版本DROP TABLE "SCAL_SLAM_SLA"."SLI_INCIDENT"; DROP TABLE "SCAL_SLAM_SLA"."SLI_INCIDENT"; CREATE TABLE "SCAL_SLAM_SLA"."SLI_INCIDENT"    (    "SLI_ID" VARCHAR2(60) NOT NULL,        "AGG_TT_ID" ...

2009.11.11 备注

ALTER TABLE "SCAL_SLAM_SLA"."SLI" ADD COLUMN "PARENT_ID" VARCHAR2(60); ALTER TABLE "SCAL_SLAM_SLA"."SLI" ADD CONSTRAINT "PARENT_ID_FK" FOREIGN KEY ("PARENT_ID")   REFERENCES "SCAL_SLAM_SLA"."SLI" ("ID" ...
1.  错误: org.hibernate.QueryParameterException: could not locate named parameter[incidentTime]      错误的语句: String sql = "UPDATE SLIIncident o SET o.isDeleted = :isDeleted WHERE o.rawEventId = :rawEventId AND o.sliId = :sliId";   Query query = em.createQuery(sql);    query.setParameter(&quo ...
java.lang.IllegalArgumentException:  id  to  load  is  required  for  loading 出现这种错误是因为SQL查询时,传入的参数为空,多打些log,看看哪个参数为空
eclipse中启动jboss5时提示:Server JBoss v5.0 at localhost was unable to start within 50 seconds. If the server requires more time, try increasing the timeout in the server editor.   解决办法:修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。<servers><server hostname=" ...
http://m77m78.itpub.net/post/125/280787 1.1 分区表PARTITION table 在ORACLE里如果遇到特别大的表,可以使用分区的表来改变其应用程序的性能。 1.1.1 分区表的建立: 某公司的每年产生巨大的销售记录,DBA向公司建议每季度的数据放在一个分区内,以下示范的是该公司1999年的数据(假设每月产生30M的数据),操作如下: 范围分区表: CREATE TABLE sales (invoice_no NUMBER, ... sale_date DATE NOT NULL )
  http://www.mkyong.com/unittest/junit-4-vs-testng-comparison/ JUnit 4 Vs TestNG JUnit 4 and TestNG are both very popular unit test framework in Java. Both frameworks look very similar in functionality. Which one is better? Which unit test framework should i use in Java project? Here i did a fea ...
http://www.breakitdownblog.com/supported-values-for-suppresswarnings/ Update #1: All these annotations are still valid in Eclipse 3.4 and 3.5, there have been no new SuppressWarning arguments added in those versions of the JDT compiler. If you are a Java developer and use the new @SuppressWarning ...
  来源: http://space.itpub.net/9765498/viewspace-539881 . 如何查看和修改数据库和session时区 Oracle中相关的时区大体可以分为两类:数据库时区和session时区。可以通过以下方式获得: 查看数据库时区信息: SQL> select dbtimezone from dual; DBTIME------+08:00 查看session时区信息: SQL> select sessiontimezone from dual; SESSIONTIMEZONE--------------------------- ...
Oracle 分析函数 Oracle从8.1.6开始提供分析函数,分析函数用于计算基于组的某种聚合值,它和聚合函数的不同之处是对于每个组返回多行,而聚合函数对于每个组只返回一行。 语法:<analytic-function>(<argument>,<argument>,...)over(  <query-partition-clause>  <order-by-clause>  <windowing-clause>)其中:1 over是关键字,用于标识分析函数。 2 <analytic-function> ...
窗口函数实验 create table window_tmp( aa number(5) NOT NULL);  insert into window_tmp values(1); insert into window_tmp values(2); insert into window_tmp values(2); insert into window_tmp values(2); insert into window_tmp values(3); insert into window_tmp values(4); insert into window_tmp values(5); inser ...
最近无厘头的开始了自己的BO XI R2 Web Intelligence之旅, 虽然时间很短,但觉得收获不小,虽然过程比较痛苦, 时间和技术储备都没有,头上还有把时间之剑. 计划抽时间整理些学到的, 慢慢写点,呵呵.     今天在http://www.forumtopics.com/busobj/index.php上问了一个问题: 3. I do passg parameters in url from report A to report B. While running, I click the url, and a prompted dialogue appear, after ...
decode()函数 语法 decode(条件, 值1, 翻译值1, 值2, 翻译值2, ...值n, 翻译值n, 缺省值) 等同于如下SQL语句:       IF 条件=值1 THEN      RETURN(翻译值1)  ELSIF 条件=值2 THEN      RETURN(翻译值2)  ......  ELSIF 条件=值n THEN      RETURN(翻译值n)  ELSE      RETURN(缺省值)  END IF
今天发现SM中有个表的列名是NUMBER, 晕倒, 是关键字, 自己试了试,解决方法如下:     select * from problem1m1 t where "NUMBER"='IM10056'   如果是sql server 可以用select * from problem1m1 t where [NUMBER]='IM10056'    
Global site tag (gtag.js) - Google Analytics