原创 Sybase的bcp備份數據
首先導出用戶數據庫中的表,將其置入文件 tables.tmp 中。 isql -Usa -Ppas -Sserver -otables.tmp <<-EOF USE database_name GO
原创 判斷一個表是否存在
if exista(select 1 from sysobjects where name=table_name) 可以判斷數據庫中是否存在table_name這個表
原创 Sybase的遊標寫法
declare cursor_name cursor for select * from tableopen cursor_name fetch cursor_name into 變量 while @@sqlstatus=0begin
原创 Tomcat設置maxIdle ,MaxActive,maxWait
maxIdle,最大空閒數,數據庫連接的最大空閒時間。超過空閒時間,數據庫連接將被標記爲不可用,然後被釋放。設爲0表示無限制。MaxActive,連接池的最大數據庫連接數。設爲0表示無限制。maxW
原创 解壓縮文件和壓縮文件的方法
package com.yqcf.util; import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.i
原创 取得下一天和上一天的日期
package com.yqcf.util; import java.util.Date;import java.util.Calendar;import java.text.SimpleDateFormat;import java.te
原创 http下載文件(通用格式)
package com.yqcf.util; import java.io.File;import java.io.FileInputStream;import java.io.IOException;import javax.servl