반응형

전체 글 154

주어(Subject)

주어의 특징 - 주어는 전형적으로 명사구이다. - 평서문을 기준으로 할 때, 주어는 처음 나오는 명사구이다. - 주어는 필수적이다. - 주어는 동사의 형태를 결정한다. ex)주어가 3인칭 단수인 경우 동사에-s를 붙여서 주어가 3인칭 단수임을 알리는 일치표시를 한다 She never emails me first. - 주어는 yes/no 의문문에서 조동사와 위치를 바꿀 수 있는 유일한 성분이다. ex) [The students] have arrived safely. ->Have [the students] arrived safely? The teacher is a genius. ->Is the teacher a genius? - 주어는 부가의문문을 만들때 문미에서 대명사로 바꿀 수 있는 유일한 성분이다. e..

English Syntax 2022.01.15

Which와 That은 다르다

which = 관계대명사 book which I bought - 여기서 which는 앞의 명사(선행사)와 연관이 있다 - 선행사는 항상 관계대명사와 붙어 있고 같이 움직인다 Who is the man (who) you just talked with? Marge is a friend (who) I can depend on when I'm in diffilculty. This is a book (which) I've been looking for. - 관계대명사가 목적격일때 생략 가능 I read the book. John bought the book yesterday. I read the book which John bought yesterday. - which는 명사구만 대체 한다 In which hou..

English Syntax 2022.01.14

[JDBC] 회원정보 수정 하기

jsp4/main.jsp 님 로그인 하셨습니다. 회원정보조회 회원정보수정 회원정보삭제 회원정보목록 jsp4/updateForm.jsp 수정 //Stirng id = 세션값 가져오기 //세션에 모든형이 저장될수 있기때문에 형변환 필요 String id = (String)session.getAttribute("id"); //1단계 드라이버 로더 Class.forName("com.mysql.jdbc.Driver"); // 2단계 디비 연결 String dbUrl ="jdbc:mysql://localhost:3306/jspdb3"; String dbUser = "root"; String dbPass = "1234"; Connection con = DriverManager.getConnection(dbUrl, d..

JDBC 2022.01.11

[JDBC] 회원가입하기

member테이블에 회원가입 정보 추가하기 jsp4/insertForm.jsp 아이디 : 비밀번호 : 이름 : jsp4/insertPro.jsp 현시스템 날짜 시간 Timestamp date = new Timestamp(System.currentTimeMillis());//날짜를 사용할 공간 만듦 //1단계 드라이버 로더 Class.forName("com.mysql.jdbc.Driver"); //2단계 디비연결 String dbUrl ="jdbc:mysql://localhost:3306/jspdb3"; String dbUser = "root"; String dbPass = "1234"; Connection con = DriverManager.getConnection(dbUrl, dbUser, dbPass..

JDBC 2021.12.10

[JDBC] DB정보 조회하기(select, ResultSet(),next())

jsp3/select.jsp ResultSet()내장객체에 저장 ResultSet rs = pstmt.executeQuery(); //5단계 저장된 결과에 접근 rs.next() -> 다음행으로 이동 // 데이터가 있으면 true 열 접근 /없으면 false while(rs.next()){ out.println(rs.getInt(1)); out.println(rs.getString(2) +" "); out.println(rs.getInt("num")); out.println(rs.getString("name") +" "); } %> jsp3/select.jsp ResultSet()내장객체에 저장 ResultSet rs = pstmt.executeQuery(); //5단계 저장된 결과에 접근 rs.next..

JDBC 2021.11.29
반응형