12 2012 档案

摘要:sql中把varchar类型转换为int型然后进行排序如果我们数据库的ID设置为varchar型的 在查询的时候order by id的话我们是不希望看到如下情况的。我们可以把varchar转换为int 然后进行排序一、[sql]select * from yourtable order by cast(yourcol as int); 适用于SQLServer Oracle二、[sql]select * from yourtable order by convert(int,yourcol); 仅适用于SQLServer 阅读全文
posted @ 2012-12-19 20:04 冰镇橘子汽水 阅读(14523) 评论(0) 推荐(0)
摘要://得到当前登录人各种的信息 //得到配置文件中的档案室角色id String das = WAFConfigure.getProperty("das"); //得到登陆人的部门ID String deptid = this.getCurrentUser().getDeptId(); String deptName =""; if(WafDeptProxy.getWafDeptById(deptid).getDeptName() != null && !(WafDeptProxy.getWafDeptById(deptid).getD.. 阅读全文
posted @ 2012-12-04 15:17 冰镇橘子汽水 阅读(524) 评论(0) 推荐(0)