본문 바로가기

분류 전체보기

6.9 날씨가 무척이나 덥다. 여름 out! 더보기
쇼킹하네 ㄷㄷ 쇼킹하다. 일베하면 정신상태가 저리 됨? 더보기
JSTL / equal null check 위 방법은 안될떄가 있다고 함. 그래서 아랫걸로.. 로 사용 하면 된다. (ne 는 not equal 인 것으로 보인다.) 반대로 equal 을 찾을 땐 로 조건을 걸면 된다. 출처:http://shonm.tistory.com/entry/JSP-JSTL-null-equal-%EA%B4%80%EB%A0%A8-%EB%AC%B8%EB%B2%95 더보기
JSTL/ el functions [index.jsp] 더보기
오라클/ 기본 쿼리문 연습. create table tb_test(test_a varchar2(100) not null default 'a')drop table tb_testdelete from tb_test where test_a = 'a' select * from tb_test select count(*) from tb_testinsert into tb_test(test_a, test_b,test_date) values ('a','b',to_date('data','format'))update tb_test set test_a = 'b'where test_b = 'b' alter table tb_test add constraint tb_test_pk primary key(test_a)alter table tb_test add co.. 더보기
트랜젝션 처리. //Dao public int BoardDelete(String boardNum,Connection conn) throws Exception{ Statement stmt = null; int cnt = 0; try{ conn = DBConnections.getConnection(); stmt = conn.createStatement(); cnt = stmt.executeUpdate(getQueryMethod(Integer.parseInt(boardNum))); } catch(Exception e){ e.printStackTrace(); throw e; } finally{ close.release(stmt, null); //connection 부분은 열어둠. } return cnt; } //서비스 publ.. 더보기
ResultSet 연습 DataSelect.java 01 import java.sql.*; 02 03 public class DataSelect{ 04 Connection con = null; 05 Statement stmt = null; 06 07 public static void main (String args []) { 08 DataSelect ds = new DataSelect(); 09 ds.connect(); 10 ds.select(); 11 ds.close(); 12 } 13 14 public void connect(){ 15 try{ 16 Class.forName("oracle.jdbc.driver.OracleDriver"); 17 con = DriverManager.getConnection 18 ("jdbc:o.. 더보기