- 浏览: 325571 次
- 性别:
- 来自: 上海
最新评论
-
大菜头:
yelifei94 写道按你说发 依旧乱码中。。。如果依然无法 ...
JForum 2.1.8 中文乱码问题 -
shenxielangzi:
折腾半天呀,也是这个问题。疯了
java.sql.SQLException: ORA-00911: 无效字符 -
v4S9vdHc:
这应该是说 return 要在函数体内
SyntaxError: 'return' outside function -
chjh_721:
Supported Values for @SuppressWarnings -
zhanyingle_1981:
哈哈,同道中人
java.sql.SQLException: ORA-00911: 无效字符
文章列表
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-16 13:53
- 浏览 973
- 评论(0)
-------------------------- 现在版本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-12 11:44
- 浏览 898
- 评论(0)
2009.11.11 备注
- 博客分类:
- 每日1记
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" ...
- 2009-11-11 18:35
- 浏览 1032
- 评论(0)
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,看看哪个参数为空
- 2009-11-11 16:08
- 浏览 2100
- 评论(0)
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=" ...
- 2009-11-05 22:04
- 浏览 4846
- 评论(0)
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 )
- 2009-11-05 17:50
- 浏览 906
- 评论(0)
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 ...
- 2009-11-04 13:13
- 浏览 1440
- 评论(0)
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 ...
- 2009-11-03 16:22
- 浏览 2428
- 评论(1)
来源: 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--------------------------- ...
- 2009-09-28 17:50
- 浏览 1865
- 评论(0)
Oracle 分析函数
Oracle从8.1.6开始提供分析函数,分析函数用于计算基于组的某种聚合值,它和聚合函数的不同之处是对于每个组返回多行,而聚合函数对于每个组只返回一行。
语法:<analytic-function>(<argument>,<argument>,...)over( <query-partition-clause> <order-by-clause> <windowing-clause>)其中:1 over是关键字,用于标识分析函数。
2 <analytic-function> ...
- 2009-09-24 17:58
- 浏览 1253
- 评论(0)
窗口函数实验
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 ...
- 2009-09-24 17:57
- 浏览 1126
- 评论(0)
最近无厘头的开始了自己的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
- 2009-09-10 14:35
- 浏览 859
- 评论(0)
今天发现SM中有个表的列名是NUMBER, 晕倒, 是关键字, 自己试了试,解决方法如下:
select * from problem1m1 t where "NUMBER"='IM10056'
如果是sql server 可以用select * from problem1m1 t where [NUMBER]='IM10056'