代码改变世界

阅读排行榜

自动属性

2012-09-09 20:06 by 呆河马, 5784 阅读, 收藏,
摘要: C#中用get和set对类的属性进行访问和设置,保障类中数据的安全。自动属性是不对字段进行逻辑验证的操作.由于自动属性可以省略后背字段,结果我很多时候都会忍不住用自动属性,而且代码也比带后备字段的属性来的明了。这样子写,这两种方法没任何区别. 那么什么情况下用一般写法 什么情况下用自动写法?你需要对 阅读全文

SQL Server 中的ROWID

2012-10-25 23:20 by 呆河马, 4920 阅读, 收藏,
摘要: 在SQL Server中没有像Orcal中的rowid,但是可以运用一定的变通达到这个效果。1、建立临时表,其中包含rowid,2、重命名原表后删除临时表USE Tianzx SELECT identity(int,1,1) as rowid,flow.* into temptable from flow--建立临时表,其中包含rowid DROP TABLE dbo.订单信息对应关系--删除原有表格 EXEC sp_rename 'tmp_ordermaininfo','订单信息对应关系'--重命名临时表 阅读全文

Toad 实现 SQL 优化

2013-08-25 16:57 by 呆河马, 3941 阅读, 收藏,
摘要: It is very easy for us to implement sql tuning by toad. We need to do is just give complex sql statement to toad. The articlegive you some examples to demonstrate how to tuning sql by toad for oracle.1.Get execution planEditor --> Explain plan current SQL or CTRL + E2.Get statistics/Auto TraceEna 阅读全文

log.debug(e.getMessage());

2013-06-20 10:32 by 呆河马, 2878 阅读, 收藏,
摘要: private static final Log log = LogFactory.getLog(AbcAction.class); @ManagedProperty(name = "abcService", value = "#{abcService}") private AbcService abcService; private Abc newItem = new Abc(); public void add() { try { extVarConfigService.saveExtVarConfig(newItem); dataModel.ref 阅读全文

解决toad中number类型小数位数过长按科学计数法显示的问题

2013-11-03 13:56 by 呆河马, 2190 阅读, 收藏,
摘要: 在toad中->view->option->data->display large number in scientific notation,不选择该选项即可。(在pl/sql developer中->tools->preferences->sql windows->number fields tochar,选中该选项即可。) 阅读全文
上一页 1 2 3 4 5 6 ··· 13 下一页