04 2012 档案
摘要:Oracle中TO_DATE TO_CHAR格式2011-07-22 9:21TO_CHAR 是把日期或数字转换为字符串TO_DATE 是把字符串转换为数据库中得日期类型转换函数TO_NUMBER 将字符转化为数字TO_CHAR 使用TO_CHAR函数处理数字TO_CHAR(number, '格式')TO_CHAR(salary,’$99,999.99’);使用TO_CHAR函数处理日期TO_CHAR(date,’格式’); TO_NUMBER使用TO_NUMBER函数将字符转换为数字TO_NUMBER(char[, '格式'])TO_DATE 使用TO_DA
阅读全文
摘要:在Spring整合 Hibernate中,对dao层访问中提供了两个操作。(1)protected final Session getSession()throws DataAccessResourceFailureException,IllegalStateException;spring api的解释: Obtain a Hibernate Session, either from the current transaction or a new one. The latter is only allowed if the "allowCreate" setting o
阅读全文
摘要:Date.prototype.Format = function(fmt) { //author: meizz var o = { "M+" : this.getMonth() + 1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hours "m+" : this.getMinutes(), //munutes "s+" : this.getSeconds(), //seconds "q+"
阅读全文