• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

littlesuccess

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2011年10月17日

Java并发编程实践-第三章-对象的共享

摘要: 3.3.3 ThreadLocal3.3.3 ThreadLocalA more formal means of maintaining thread confinement is ThreadLocal,which allows you to associate a per-thread value with a value-holding object. ThreadLocal provides get and set accessor methods that maintain a separate copy of the value for each thread that use... 阅读全文

posted @ 2011-10-17 15:01 littlesuccess 阅读(252) 评论(0) 推荐(0)

Java并发编程实践-第十三章-Explicit Locks

摘要: Explicit LocksExplicit LockBefore Java 5.0, the only mechanisms for coordinating access to shared data were synchronized and volatile. Java 5.0 adds another option: ReentrantLock.Contrary to what some have written, ReentrantLock is not a replacement for intrinsic locking, but rather an alternative w 阅读全文

posted @ 2011-10-17 14:21 littlesuccess 阅读(222) 评论(0) 推荐(0)

unique index可以有多个NULL值吗?

摘要: 1.创建测试表和测试索性代码:CREATE TABLE "GSC"."UNIQUE_TEST"( "COL" VARCHAR2(20 BYTE));CREATE UNIQUE INDEX "GSC"."IDX_COL" ON "GSC"."UNIQUE_TEST" ("COL") 2.插入2条NULL数据INSERT INTO unique_test VALUES(NULL);SELECT * FROM unique_test;--显示 阅读全文

posted @ 2011-10-17 08:19 littlesuccess 阅读(1077) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3