2016年5月19日

java正则表达式验证

摘要: package com.office.utility; import java.util.regex.Pattern; /** * 校验器:利用正则表达式校验邮箱、手机号等 * * @author liujiduo * */ public class Validator { /** * 正则表达式: 阅读全文

posted @ 2016-05-19 10:26 vbvb520 阅读(259) 评论(0) 推荐(0) 编辑

sql之left join、right join、inner join的区别

摘要: left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录,特殊情况:左不为空,右为空 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录,特殊情况:左为空,右不为空inner join(等值连接) INNER JOIN 关键字在表中存在所有的都 阅读全文

posted @ 2016-05-19 09:32 vbvb520 阅读(326) 评论(0) 推荐(0) 编辑

2016年5月18日

Servlet 输出图片验证码

摘要: package com.qad.jpg; import java.awt.Color;import java.awt.Font;import java.awt.Graphics2D;import java.awt.image.BufferedImage;import java.io.IOExcept 阅读全文

posted @ 2016-05-18 14:09 vbvb520 阅读(163) 评论(0) 推荐(0) 编辑

Myeclipse不能使用alt+/快捷方式的解决方法

摘要: 1)MyEclipse下进入Windows ->Preperences ->General ->keys2)把word completion的快捷键设置alt+/删掉!3)把Content Assist的快捷键由ctrl+space改成alt+/ 阅读全文

posted @ 2016-05-18 10:48 vbvb520 阅读(268) 评论(0) 推荐(0) 编辑

2016年5月13日

两个递增数据组合成一个递增数据(不适用)

摘要: public class ListArrayApp { public static void main(String[] args) { int[] a = { 1, 3, 5 };int[] b = { 2, 6 };int l = a.length + b.length;int[] c = ne 阅读全文

posted @ 2016-05-13 11:48 vbvb520 阅读(213) 评论(0) 推荐(0) 编辑

java回调机制

摘要: //超级计算器小红1 public class SuperCalculator 2 { 3 public void add(int a, int b, Student xiaoming) 4 { 5 int result = a + b; 6 xiaoming.fillBlank(a, b, res 阅读全文

posted @ 2016-05-13 09:56 vbvb520 阅读(154) 评论(0) 推荐(0) 编辑

java中的继承问题

摘要: // 定义一个Earth类 public class Earth { protected String name; protected int age; public Earth(String name, int age) { this.name = name; this.age = age; } 阅读全文

posted @ 2016-05-13 09:38 vbvb520 阅读(178) 评论(0) 推荐(0) 编辑

2016年5月11日

oracle自定义函数:将字符串中的特殊字符转化为逗号

摘要: create or replace function F_SPLIT_CONDITION(START_STRING VARCHAR2, V_FLAG VARCHAR2)/***将给出的START_STRINGN字符串按V_FLAG替换为逗号分隔的字符串*例如:12-34-56 替换为'12','34 阅读全文

posted @ 2016-05-11 17:27 vbvb520 阅读(855) 评论(0) 推荐(0) 编辑

2016年5月10日

oracle常用的函数

摘要: 1.instr(String1,String2,start_position,nth_apperance) String1:源字符串,要在此字符串中查找; String2:要在String1中查找的字符串; start_position:在String1中查找的开始位置; nth_apperance 阅读全文

posted @ 2016-05-10 16:10 vbvb520 阅读(205) 评论(0) 推荐(0) 编辑

2016年5月6日

oracle中导入dmp数据注意事项

摘要: 1.在oracle中导入dmp数据的时候,一般使用exp导出的是带有表结构的数据,这时候导入数据库,如果数据库中有这个表,就会报错,说已经存在这个表,无法创建,这时候imp导入语句中需要加入一句ignore='Y',这样就可以只导入数据,而不会建表了。 2.有时候导入数据库的中文会变成乱码,这时候可 阅读全文

posted @ 2016-05-06 09:48 vbvb520 阅读(475) 评论(0) 推荐(0) 编辑

导航