이글루스 | 로그인
카테고리
전체
Game
미분류
최근 등록된 덧글
복받으실겝니다. m(_ ..
by 복 at 12/09
퍼갈게요~ㅎ
by 쏘닐 at 04/03
퍼갈게요 ㅎㅎ
by ToTo at 03/24
테스트
by 소닉 at 10/19
테스트
by 소닉 at 10/19
영자님 ㅈㅅ하지만 웹로직..
by 이성우 at 09/23
잘보고 퍼갑니다...
by mool at 07/09
좋은 정보 잘 보고 갑니다.
by FromNil at 06/17
이글루 파인더

skin by 狂風
perl 정규 표현식

\를 붙여줘야 하는 특수문자들 :

\^ \$ \| \[ \] \( \) \\ \/ \{ \} \* \. \? \+
by 소닉 | 2011/04/07 21:19 | 트랙백 | 덧글(0)

perl 주석

* 한줄 주석 : #

* 영역 주석
=comment
라인;
라인;
=cut
by 소닉 | 2011/04/07 21:17 | 트랙백 | 덧글(0)

java replaceAll 쓸때 특수문자 사용

http://mean79.tistory.com/60

*  => [*]
+  => [+]
$  => [$]
I  => [I]

(  =>  \\(
)  => \\)
{  => \\{
}  => \\}
^  => \\^
[  => \\[
]  => \\]

"  => \"

그대로 사용 가능한 것
! # % & @ ' : ; - . < > , ~ `
by 소닉 | 2011/03/09 20:50 | 트랙백 | 덧글(0)

JSP 에서 Prepared Statement 구문 사용

JSP 에서 Prepared Statement 구문의 사용은 다음과 같다


// 객체 선언
Connection con;
PreparedStatement pstmt;
ResultSet rs;

// DB연결 생성
con = DriverManager.getConnection(-------);

// Query 문 및 변수값 세팅
pstmt = con.prepareStatement(“Select  name, id, num from Membertable where id=? And passwd=?“);
pstmt.setString(1, "test");             // 변수형에 따라 setXXXX 사용 ex) setInt, setDouble
pstmt.setString(2, "testpwd");

// Query 문 실행
rs = pstmt.executeQuery();          // executeQuery, executeUpdate

// 결과 처리
if (rs.next()){
    // rs 객체로부터 결과를 추출하여 사용자 펑션의 실행
    Run_user_function (…, rs.getString(name), rs.getString(id), rs.getint(num));
    // 또는 인덱스를 이용한 결과값 추출
    Run_user_function (…, rs.getString(1), rs.getString(2), rs.getint(3));
}

// 객체 close
rs.close();
pstmt.close();


by 소닉 | 2011/02/25 14:57 | 트랙백 | 덧글(0)

◀ 이전 페이지 다음 페이지 ▶