摘要: 《将博客搬至CSDN》 阅读全文
posted @ 2016-03-11 10:53 谈感情伤钱 阅读(89) 评论(0) 推荐(0) 编辑
摘要: import java.util.regex.Matcher;import java.util.regex.Pattern;String check = '^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$' Pattern regex = Pattern.compile(check); Matcher matcher = regex.matcher(email); if(!matcher.matches()){ Messagebox.show("请填写 阅读全文
posted @ 2014-03-12 16:27 谈感情伤钱 阅读(118) 评论(0) 推荐(0) 编辑
摘要: oracle1. 字符型CHAR型:定长字符串,短则用空格填充,长则出错。VARCHAR2型:变长字符串。字段长度根据实际字符串长度自动调整,不用空格填充。2.数值型NUMBER(PRECISION,SCALE)精度PRECISION指定所有数字位的个数,范围SCALE指定小数的位数,两个参数均是可选的。如果插入的字段数据超过指定位数,将自动四舍五入。3.日期时间数据类型DATE可以存储日期和时间的组合数据。ORACLE默认的日期格式是 DD-MON-YY。4.LOB数据类型用于大型的、未被结构化的数据,如二进制文件、图片文件等。LOB数据类型又分为BLOB、CLOB和BFILE三种。BLOB 阅读全文
posted @ 2014-03-11 16:24 谈感情伤钱 阅读(869) 评论(0) 推荐(0) 编辑
摘要: ORACLE数据库,在其中一个表最后添加了两个字段 alter table your_table add (column1 col_type1,clumn2 col_type2...); your_table :表名 column1/column2 :字段名 col_type1/col_type2 :字段类型 阅读全文
posted @ 2014-03-11 16:23 谈感情伤钱 阅读(639) 评论(0) 推荐(0) 编辑
摘要: workDetailsInstance.withTransaction{ status -> //事物 try{ }catch(Exception exp){ status.setRollbackOnly() //msg="申请发生错误,请重新申请!" } } 阅读全文
posted @ 2014-03-11 16:19 谈感情伤钱 阅读(176) 评论(0) 推荐(0) 编辑
摘要: PostgreSQL和oracle是进程模式,MySQL是线程模式。进程模式对多CPU利用率比较高。进程模式共享数据需要用到共享内存,而线程模式数据本身就是在进程空间内都是共享的,不同线程访问只需要控制好线程之间的同步。线程模式对资源消耗比较少。所以MySQL能支持远比oracle多的更多的连接。对于PostgreSQL的来说,如果不使用连接池软件,也存在这个问题,但PostgreSQL中有优秀的连接池软件软件,如pgbouncer和pgpool,所以通过连接池也可以支持很多的连接。 阅读全文
posted @ 2014-03-11 16:19 谈感情伤钱 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: User.findAll("from User u where u.userId = ?", [ "joe" ])User.findAll("from User u where u.userId = :uid", [ uid: "joe" ])User.findAll("from User u where u.userId like :uid",[ uid: "j%", max:params.max, offset: params.offset ] )def users = 阅读全文
posted @ 2014-03-11 16:15 谈感情伤钱 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 首页 上一页 ${pageNumber } ${pageNumber } 下一页 尾页 阅读全文
posted @ 2014-03-11 16:14 谈感情伤钱 阅读(108) 评论(0) 推荐(0) 编辑
摘要: render(view: "user_timeline", model: [ user: user ])redirect(action:'timeline')redirect(controller: 'post', action:'timeline', id: newUser.userId)redirect(controller: 'post', action:'timeline',params: [fullName: newUser.profile.fullName,email: newUse 阅读全文
posted @ 2014-03-11 16:09 谈感情伤钱 阅读(89) 评论(0) 推荐(0) 编辑
摘要: http://www.zkoss.org/zkdemo/file_handling/file_upload 阅读全文
posted @ 2014-03-11 16:04 谈感情伤钱 阅读(170) 评论(0) 推荐(0) 编辑