都都

博客园 首页 新随笔 联系 订阅 管理

2010年5月13日 #

摘要: 1.把日期型数据用to_char转换成字符型,然后就可以用以下sql语句来查询数据了select imp_date from test where imp_date<'2009-12-06' and imp_date>='2009-12'; --to_char(sysdate,'YYYY-MM-DD');结果:1 2009-12-052 2009-12-02 阅读全文
posted @ 2010-05-13 09:51 都都 阅读(4932) 评论(2) 推荐(0)

2010年4月19日 #

摘要: Using(TransactionScope scope=new TransactionScope()){ scope.Commit();}相当于:TransactionScope scope=new TransactionScope()try{ scope.Commit();}finally{ scope.Disposal();} 阅读全文
posted @ 2010-04-19 08:26 都都 阅读(154) 评论(0) 推荐(0)