上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 43 下一页
摘要: import java.sql.CallableStatement; import java.sql.Connection; import java.sql.ResultSet; import oracle.jdbc.OracleTypes; import oracle.jdbc.oracore.OracleType; public class Test { static void 简... 阅读全文
posted @ 2017-01-05 07:40 ATJAVA 阅读(157) 评论(0) 推荐(0) 编辑
摘要: import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; //自定义jdbc工具类。 //目的是简化jdbc开发。 public class JDBCUtil... 阅读全文
posted @ 2017-01-05 07:38 ATJAVA 阅读(123) 评论(0) 推荐(0) 编辑
摘要: --复制表 create table emp as(select * from scott.emp); select * from emp; --Demo1创建存储过程,实现将emp表comm为空时,替换成0 create or replace procedure update_emp_comm as begin update emp set comm='1' where comm='0'; d... 阅读全文
posted @ 2017-01-05 07:36 ATJAVA 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 在抛出内存溢出错误的时候,一般都会提示内存泄露的种类,一般也都是按照区域进行划分: 1. 堆(heap)内存泄漏java.lang.OutOfMemoryError: Javaheap space:大家都比较熟悉 ,通过设置-Xms2048m -Xmx4096m可以解决 2. 栈(stack)内存泄 阅读全文
posted @ 2017-01-03 12:01 ATJAVA 阅读(447) 评论(0) 推荐(0) 编辑
摘要: package com.etc.jichu; public class Singleton { //初始化为null的单例,用关键字volatile(不稳定的)修饰 private static volatile Singleton single=null; //私有的构造方法 private Singleton(){} public static Singleton getSin... 阅读全文
posted @ 2017-01-03 08:22 ATJAVA 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 示例1:SwingAndThread package com.etc.jichu; import java.awt.Container; import java.net.URL; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabe... 阅读全文
posted @ 2017-01-02 16:15 ATJAVA 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 示例1:Address package com.etc.jichu; import java.net.InetAddress; public class Address { public static void main(String[] args) { InetAddress ip; try { ip = InetAddress.getLocalHost(); String localnam... 阅读全文
posted @ 2017-01-02 14:57 ATJAVA 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 在Form表单中使用验证码: "> 在Form表单中使用验证码 --> 数字字母混合验证码: 中文验证码: 英文验证码: 数字验证码: ... 阅读全文
posted @ 2017-01-02 12:56 ATJAVA 阅读(794) 评论(0) 推荐(0) 编辑
摘要: { initialize(); } private void initialize() 阅读全文
posted @ 2017-01-02 11:38 ATJAVA 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 一、基础 1、说明:创建数据库 CREATE DATABASE database-name 2、说明:删除数据库 drop database dbname 3、说明:备份sql server 创建 备份数据的 device USE master EXEC sp_addumpdevice 'disk' 阅读全文
posted @ 2016-12-31 14:35 ATJAVA 阅读(217) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 43 下一页