摘要:
最近在用JAVA研究下爬网技术,呵呵,入了个门,把自己的心得和大家分享下以下提供二种方法,一种是用apache提供的包.另一种是用JAVA自带的.代码如下:// 第一种方法//这种方法是用apache提供的包,简单方便//但是要用到以下包:commons-codec-1.4.jar// commons-httpclient-3.1.jar// commons-logging-1.0.4.jar public static String createhttpClient(String url, String param) { HttpClient client = new HttpClient(
阅读全文
posted @ 2011-04-22 13:25
Steven John
阅读(694)
推荐(0)
编辑
摘要:
sql判断是否为空的查询语句:select t.term from call t where class is null;select t.term from call t where class is not null;select mobile,visttime from local_vistlog where url like 'http://wap0579.cn/wap/hd/yd/4.jsp%' and visttime between to_date('2011-04-22','YYYY-MM-DD') and to_date(
阅读全文
posted @ 2011-04-22 13:23
Steven John
阅读(243)
推荐(0)
编辑
摘要:
Oracle里面的导入导出的命令很简单就是exp/imp,导出命令的格式是:exp system/manager@TEST file=d:daochu.dmp full=y其中system是用户名,manager是密码,TEST是数据库名称,file=后面是导出为哪个文件导入命令的格式是:imp system/manager@TEST file=d:daochu.dmp其中system是用户名,manager是密码,TEST是数据库名称,file=后面是要导入哪个文件
阅读全文
posted @ 2011-04-22 13:22
Steven John
阅读(174)
推荐(0)
编辑