大家可能在spring中经常看到这样的定义: <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop><prop key="store*">PROPAGATION_REQUIRED</prop> 估计有好多朋友还没有弄清楚里面的值的意思,仔细看完下面应该知道自己什么情况下面应该使用什么样的声明。^_^ Spring中常用事务类型: PROPAGATION_REQUIRED--支持当前事务,如果当前没有事务,就新建一个事务。这是最常见的选择。 PROPAGATION_SUP ...
  • 16:11
  • 浏览 (96)
  • 评论 (0)
  • 分类: db
http://www.javaeye.com/topic/8850 如果只提交一个查询,有必要用事务吗?这个问题之前已经讨论过 http://forum.javaeye.com/viewtopic.php?t=1603
  • 14:38
  • 浏览 (93)
  • 评论 (0)
  • 分类: db
QUESTION POSED ON: 17 October 2002 I have a rather simple question: What does "SELECT 1 FROM ..." accomplish? I am debugging a software program that is sending a "SELECT 1" statement to the database, and I am basically curious. Does it simply select one column from the record it finds?   EXP ...
  • 13:55
  • 浏览 (177)
  • 评论 (0)
  • 分类: db
http://hi.baidu.com/sericalee/blog/item/3d9f02d8866f143533fa1c83.html   我们先来看一下他们的定义: A schema is a collection of database objects (used by a user.).  Schema objects are the logical structures that&nbs ...
  • 15:58
  • 浏览 (384)
  • 评论 (0)
  • 分类: db
http://hi.baidu.com/honglovejia/blog/item/97961b34f2ad213a5bb5f590.html 经常在程序里看到“select sysdate from dual;” 查了一下关于DUAL表的资料: 1. Dual 是什么?     select object_name ,object_type from dba_objects where object_name =\'DUAL\'     结果: OWNER   &nb ...
  • 13:38
  • 浏览 (284)
  • 评论 (0)
  • 分类: db
Setting up Oracle JNDI Datasource on Tomcat by Leon van Tegelen   In one of the projects I’m involved in we have to make use of specific Oracle JDBC features. The application runs on Tomcat 5.0.27 and connects to the database using a JNDI datasource setup to use connection pooling . Whe ...
  • 10:32
  • 浏览 (487)
  • 评论 (0)
  • 分类: db
huangxx
搜索本博客
最近加入圈子
存档
最新评论