본문 바로가기
반응형

Mizix131

Sqlite DB + java 연동 Sqlite JDBC 다운 http://www.zentus.com/sqlitejdbc/ Example Source import java.sql.*; public class Test { public static void main(String[] args) throws Exception { Class.forName("org.sqlite.JDBC"); Connection conn = DriverManager.getConnection("jdbc:sqlite:test.db"); Statement stat = conn.createStatement(); stat.executeUpdate("drop table if exists people;"); stat.executeUpdate("create table people .. 2010. 8. 24.
C# DES 암호화(Encrypt), 복호화(Decrypt) ex>> // 암호화 키(8byte) static byte[] desKey = ASCIIEncoding.ASCII.GetBytes("tech0001"); Des des = new Des(desKey); ....... Des Class(암호화, 복호화) using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Security.Cryptography; using System.IO; /// /// Summary description for Des /// public class Des { byte[] key = null; protected Des() { } public Des(byte[] des.. 2010. 8. 18.
각종 DB JDBC 연결 1. Oracle 1). 서버환경 - 서버 주소 : 127.0.0.1 - 서비스 포트 : 1521 2). JDBC 설정 - Driver 클래스 : oracle.jdbc.driver.OracleDriver - URL 형식 : jdbc:oracle:thin:@127.0.0.1:1521 2. MySQL 1). 서버환경 - 서버 주소 : 127.0.0.1 - 서비스 포트 : 3306 - MySQL Database Name : mydb 2). JDBC 설정 - Driver 클래스 : com.mysql.jdbc.Driver - URL 형식 : jdbc:mysql://127.0.0.1:3306/mydb 3. MS-SQL 1). 서버환경 - 서버 주소 : 127.0.0.1 - 서비스 포트 : 1433 2). JDBC .. 2010. 8. 17.
인덱서 인덱스 생성 법 struct IntBits { public IntBits(int initialBitValue) { bits = initialBitValue; } //여기에 인덱서를 작성. public bool this[int index] { get { return (bits & (1 2010. 8. 6.
반응형