摘要: CentOS 6.4 MySQL安装 1、卸载掉原有MySQL yum install -y mysql-server mysql mysql-deve 阅读全文
posted @ 2016-12-24 21:59 zhgs_cq 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Java 发邮件 <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4.7</version> </dependency> package cn.gszhang.common.bas 阅读全文
posted @ 2016-12-11 19:13 zhgs_cq 阅读(460) 评论(0) 推荐(0) 编辑
摘要: SpringMVC+mybatis+maven整合 一、项目架构效果图 二、项目源码 1.pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in 阅读全文
posted @ 2016-08-23 22:16 zhgs_cq 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: PL/SQL 自动补全1.新建 shortcuts.txt 内容如下: s = SELECT t.* FROM t w = WHERE b = BETWEEN AND l... 阅读全文
posted @ 2015-07-22 20:28 zhgs_cq 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 蛇形矩阵package com.zhanggaosong;/*** 蛇形矩阵* @author zhanggaosong**/public class Main {public static void main(String[] args) { int i,j,k=1; int n=6; ... 阅读全文
posted @ 2014-12-01 14:12 zhgs_cq 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 安装和使用花生壳(linux)一、安装说明(以CentOS 5为例)1、安装必要的开发包[root@localhost ~]# yum install gcc gcc-c++ autoconf automake2、下载phddns-2.0.2.16556.tar.gz到某一个目录[root@localhost ~]# wget http://download.oray.com/peanuthull/phddns-2.0.2.16556.tar.gz3、解压所有文件[root@localhost ~]# tar zxvf phddns-2.0.2.16556.tar.gz4、进入目录并编译[ro 阅读全文
posted @ 2013-11-15 09:05 zhgs_cq 阅读(581) 评论(0) 推荐(0) 编辑
摘要: oracle 11g导出dmp时处理空表select 'alter table '|| table_name ||' move;' from user_tables where segment_created='NO'; 阅读全文
posted @ 2013-11-13 11:33 zhgs_cq 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 从键盘输入一串数据,以“exit"结束输入,且输出数据。package com.liyuanjiao;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class Lyj{ public static void main(String[] args) { String n=""; System.out.println("请从键盘上输入数据(以“exit”字符结束);"); StringBuilder s 阅读全文
posted @ 2013-10-08 00:33 zhgs_cq 阅读(911) 评论(0) 推荐(0) 编辑
摘要: 判断指定盘符下文件夹是否存在1.判断E:盘下MySQL文件夹是否存在。若不存在,则创建。import java.io.File;public class Test { public static void main(String[] args) { isExist("E:\\MySQL"); } private static void isExist(String path) { File file = new File(path);//判断文件夹是否存在,如果不存在则创建文件夹 if (!file.exists()) { file.mkdir(); } } } 阅读全文
posted @ 2013-10-06 11:32 zhgs_cq 阅读(496) 评论(0) 推荐(0) 编辑
摘要: java 输出图形1.效果图代码:package com.zhanggaosong;public class Main { public static void main(String[] args) { final int size = 5; int[][] ary = new int[size][size]; int num = 1; for(int row = 0; row = 0; i--){ ary[i][col++] = num++; } } // for 输出 for(int i=0;i<ary.length;i++){ for(int j=0;j<ary[i].le 阅读全文
posted @ 2013-09-21 22:41 zhgs_cq 阅读(848) 评论(0) 推荐(0) 编辑