์๋ ํ์ธ์ yunamom ์ ๋๋ค :D
์ ๋ณด์ฒ๋ฆฌ์ฐ์ ๊ธฐ์ฌ ๊ณผ์ ํ๊ฐํ ์ค๊ธฐ ์ฐ์ต๋ฌธ์ ์ธ ๊ณจํ์ฐ์ต์ฅ ํ์๊ด๋ฆฌ ํ๋ก๊ทธ๋จ์ 100% JSP ๋ก ๊ตฌํํ
ONLY ์ํ์ ํฉ๊ฒฉํ๊ธฐ ์ํ ์์ค์ฝ๋ ๋ฅผ ํฌ์คํ ํ๊ฒ ์ต๋๋ค ๐(์ด์คํผ๋๋ก ๊ตฌํํ ์ ์์)
์์ ( ๋ฐ์ดํฐ๋ฒ ์ด์ค ๐๐ป ํ๋ก ํธ ๐๐ป ๋ฐฑ์๋ )
๋ฐ์ดํฐ๋ฒ ์ด์ค
1. db.sql
CREATE TABLE TBL_TEACHER_202201(
TEACHER_CODE CHAR(3) NOT NULL PRIMARY KEY,
TEACHER_NAME VARCHAR2(15),
CLASS_NAME VARCHAR2(20),
CLASS_PRICE NUMBER(8),
TEACHER_REGIST_DATE VARCHAR2(8)
);
CREATE TABLE TBL_MEMBER_202201(
C_NO CHAR(5) NOT NULL PRIMARY KEY,
C_NAME VARCHAR2(15),
PHONE VARCHAR2(11),
ADDRESS VARCHAR2(50),
GRADE VARCHAR2(6)
);
CREATE TABLE TBL_CLASS_202201(
REGIST_MONTH VARCHAR2(6),
C_NO CHAR(5),
CLASS_AREA VARCHAR2(15),
TUITION NUMBER(8),
TEACHER_CODE CHAR(3),
CONSTRAINT CLASS_PK PRIMARY KEY (REGIST_MONTH, C_NO)
);
INSERT INTO TBL_TEACHER_202201 VALUES('100','์ด์ด๊ธ','์ด๊ธ๋ฐ',100000,'20220101');
INSERT INTO TBL_TEACHER_202201 VALUES('200','๊น์ค๊ธ','์ค๊ธ๋ฐ',200000,'20220102');
INSERT INTO TBL_TEACHER_202201 VALUES('300','๋ฐ๊ณ ๊ธ','๊ณ ๊ธ๋ฐ',300000,'20220103');
INSERT INTO TBL_TEACHER_202201 VALUES('400','์ ์ฌํ','์ฌํ๋ฐ',400000,'20220104');
INSERT INTO TBL_MEMBER_202201 VALUES('10001','ํ๊ธธ๋','01011112222','์์ธ์ ๊ฐ๋จ๊ตฌ','์ผ๋ฐ');
INSERT INTO TBL_MEMBER_202201 VALUES('10002','์ฅ๋ฐ์ฅ','01022223333','์ฑ๋จ์ ๋ถ๋น๊ตฌ','์ผ๋ฐ');
INSERT INTO TBL_MEMBER_202201 VALUES('10003','์๊บฝ์ ','01033334444','๋์ ์ ์ ์ฑ๊ตฌ','์ผ๋ฐ');
INSERT INTO TBL_MEMBER_202201 VALUES('20001','์ฑ์ถํฅ','01044445555','๋ถ์ฐ์ ์๊ตฌ','VIP');
INSERT INTO TBL_MEMBER_202201 VALUES('20002','์ด๋ชฝ๋ฃก','01055556666','๋๊ตฌ์ ๋ถ๊ตฌ','VIP');
INSERT INTO TBL_CLASS_202201 VALUES('202203','10001','์์ธ๋ณธ์',100000,'100');
INSERT INTO TBL_CLASS_202201 VALUES('202203','10002','์ฑ๋จ๋ถ์',100000,'100');
INSERT INTO TBL_CLASS_202201 VALUES('202203','10003','๋์ ๋ถ์',200000,'200');
INSERT INTO TBL_CLASS_202201 VALUES('202203','20001','๋ถ์ฐ๋ถ์',150000,'300');
INSERT INTO TBL_CLASS_202201 VALUES('202203','20002','๋๊ตฌ๋ถ์',200000,'400');
TIP : ํ ์ด๋ธ alias, ์ปฌ๋ผ๋ช (ํ๊ธ) ์ ์ ์ด๋๊ณ ์ฐธ๊ณ ํ๋ฉด ์กฐ์ธํ ๋ ์ข๋ ์ฝ๊ฒ ๊ตฌ๋ถํ ์ ์์ต๋๋ค.
ํ๋ก ํธ
2. index.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%@ include file="topmenu.jsp" %>
<section>
<div class="title">๊ณจํ์ฐ์ต์ฅ ํ์๊ด๋ฆฌ ํ๋ก๊ทธ๋จ</div>
</section>
<%@ include file="footer.jsp" %>
</body>
</html>
3. topmenu.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="style.css?ver=1">
</head>
<body>
<header>๊ณจํ์ฐ์ต์ฅ ํ์๊ด๋ฆฌ ํ๋ก๊ทธ๋จ ver 1.0</header>
<nav>
<ul>
<li><a href="teacher.jsp">๊ฐ์ฌ์กฐํ</a></li>
<li><a href="insert.jsp">์๊ฐ์ ์ฒญ</a></li>
<li><a href="member.jsp">ํ์์ ๋ณด์กฐํ</a></li>
<li><a href="result.jsp">๊ฐ์ฌ๋งค์ถํํฉ</a></li>
<li><a href="index.jsp">ํ์ผ๋ก</a></li>
</ul>
</nav>
</body>
</html>
4. footer.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<footer>
HRDKOREA Copyright@2015 All rights reserved. Human Resources Development Service of Korea
</footer>
</body>
</html>
5. style.css
(footer ๋ฐ๋ฅ์ ๋ถ๊ฒํ๊ธฐ position: absolute; bottom: 0; ์ค์!! )
@charset "UTF-8";
*{
margin: 0;
padding: 0;
}
body{
font-family: gulim;
background: #cdcdcd;
}
header{
top: 0;
height: 150px;
line-height: 150px;
text-align: center;
font-size: 30px;
font-weight: 900;
color: #fff;
background: #333;
}
nav ul{
height: 50px;
line-height: 50px;
background: #666;
}
nav ul li{
list-style: none;
float: left;
padding: 0 15px;
}
a{
text-decoration: none;
color: #fff;
font-weight: 500;
}
.btn{
padding: 0.3rem;
}
a:hover, .btn:hover{
cursor: pointer;
opacity: 0.6;
}
section{
width: 100%;
}
.title{
margin: 2rem;
font-size: 25px;
font-weight: 900;
text-align: center;
}
.wrapper{
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.main{
margin: 2rem;
}
table, th, td{
border: 1px solid #333;
border-collapse: collapse;
}
th, td{
padding:0.5rem;
}
input, select{
width: 40%;
float: left;
font-size: 15px;
margin-right: 0.5rem;
}
.insertBox td{
text-align: left;
}
footer{
position: absolute;
bottom: 0;
width: 100%;
height: 50px;
line-height: 50px;
text-align: center;
color: #fff;
background: #333;
}
6. script.js
function fn_submit(){
var fn = document.frm;
if(fn.regist_month.value === ""){
alert("์๊ฐ์์ ์
๋ ฅํด์ฃผ์ธ์!");
fn.regist_month.focus();
return false;
}
if(fn.c_no.value === ""){
alert("ํ์๋ช
์ ์ ํํด์ฃผ์ธ์!");
fn.c_name.focus();
return false;
}
if(fn.class_area.value === ""){
alert("๊ฐ์์ฅ์๋ฅผ ์ ํํด์ฃผ์ธ์!");
fn.class_area.focus();
return false;
}
if(fn.tuition.value === ""){
alert("๊ฐ์๋ช
์ ์ ํํด์ฃผ์ธ์!");
fn.teacher_code.focus();
return false;
}
fn.submit();
}
function fn_reset(){
if(confirm("์ ๋ณด๋ฅผ ์ง์ฐ๊ณ ์ฒ์๋ถํฐ ๋ค์ ์
๋ ฅํฉ๋๋ค!")){
location="insert.jsp";
}
}
function fn_change1(){ //ํ์๋ช
์
๋ ํธ๋ฐ์ค
var fn = document.frm;
/* ์ค ์ */
fn.tuition.value = ""; //ํ์๋ณ ํ ์ธ๋ฅ ์ ์ ์ฉํด์ผํ๋ฏ๋ก ์๊ฐ๋ฃ ์ด๊ธฐํ
fn.teacher_code.options[0].selected = true; //์
๋ ํธ๋ฐ์ค ์ด๊ธฐํ
fn.c_no.value = fn.c_name.value; //ํ์๋ฒํธ ๋ฃ์ด์ฃผ๊ธฐ
}
function fn_change2(){ //๊ฐ์์ ์ฒญ ์
๋ ํธ๋ฐ์ค
var fn = document.frm;
var price = fn.teacher_code.value * 1000; //์๊ฐ๋ฃ
var c_no = fn.c_no.value; // ํ์๋ฒํธ 20000์ด์ 50%ํ ์ธ
if(c_no >= 20000) price *= 0.5; //50% ํ ์ธ
fn.tuition.value = price; //์๊ฐ๋ฃ ๋ฃ์ด์ฃผ๊ธฐ
}
ํ๋ก ํธ + ๋ฐฑ์๋ ์งฌ๋ฝ.. (์ ์ ์์ ์ฃผ์)
7. teacher.jsp ( sql๋ฌธ substr, ||, decode ๋ฑ ๊ธฐ๋ณธ ํจ์๋ค ๋ฏธ๋ฆฌ ๊ณต๋ถํด์ ๋ฐ์ดํฐ ํ๋ฐฉ์ ๋ค ๋ถ๋ฌ์ค๊ธฐ )
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>๊ฐ์ฌ์กฐํ</title>
</head>
<body>
<%@ include file="topmenu.jsp" %>
<section>
<div class="title">๊ฐ์ฌ์กฐํ</div>
<div class="wrapper">
<table style="width: 700px;">
<tr>
<th>๊ฐ์ฌ์ฝ๋</th>
<th>๊ฐ์ฌ๋ช
</th>
<th>๊ฐ์๋ช
</th>
<th>์๊ฐ๋ฃ</th>
<th>๊ฐ์ฌ์๊ฒฉ์ทจ๋์ผ</th>
</tr>
<%
try{
Class.forName("oracle.jdbc.OracleDriver");
Connection con = DriverManager.getConnection
("jdbc:oracle:thin:@//localhost:1521/xe","system","1234");
Statement stmt = con.createStatement();
request.setCharacterEncoding("UTF-8");
String sql = "SELECT ";
sql+= "teacher_code, ";
sql+= "teacher_name, ";
sql+= "class_name, ";
sql+= "('โฉ' || TO_CHAR(class_price,'fm999,999,999')) class_price, ";
sql+= "(SUBSTR(teacher_regist_date,0,4) ";
sql+= "|| '๋
' ";
sql+= "|| SUBSTR(teacher_regist_date,5,2) ";
sql+= "|| '์' ";
sql+= "|| SUBSTR(teacher_regist_date,7,2) ";
sql+= "|| '์ผ' )teacher_regist_date ";
sql+= "FROM tbl_teacher_202201";
ResultSet rs = stmt.executeQuery(sql);
while(rs.next()){%>
<tr>
<td><%=rs.getString("teacher_code") %></td>
<td><%=rs.getString("teacher_name") %></td>
<td><%=rs.getString("class_name") %></td>
<td><%=rs.getString("class_price") %></td>
<td><%=rs.getString("teacher_regist_date") %></td>
</tr>
<%}
con.close();
stmt.close();
}catch(Exception e){
}
%>
</table>
</div>
</section>
<%@ include file="footer.jsp" %>
</body>
</html>
8. insert.jsp ( ์๋ฐ์คํฌ๋ฆฝํธ ์ด๋ฒคํธํจ์ ์์๋๊ธฐ )
- ํ์๋ช ์ ํ์ ํ์๋ฒํธ๋ ์๋์ผ๋ก ๋ํ๋๋ค.
- ํ์๋ฒํธ๊ฐ 20000 ์ด์์ธ ํ์์ ์๊ฐ๋ฃ 50% ํ ์ธํด์ ์๊ฐ๋ฃ๊ฐ ์๋์ผ๋ก ๊ณ์ฐ๋์ด ๋ํ๋๋ค.
- ๋ชจ๋ ํญ๋ชฉ์ ์ ํจ์ฑ ๊ฒ์ฌ๋ฅผ ์ค์ํ๋ฉฐ, ๊ฐ์ด ๋น์ด์๊ฑฐ๋ ์ ํ๋์ง ์์ ๊ฒฝ์ฐ ์ค๋ฅ๋ฉ์ธ์ง๋ฅผ ๋์ด ํ ํฌ์ปค์ค๋ฅผ ์ด๋
- ๋ค์์ฐ๊ธฐ ๋ฒํผ์ ๋๋ฅด๋ฉด "์ ๋ณด๋ฅผ ์ง์ฐ๊ณ ์ฒ์๋ถํฐ ๋ค์ ์ ๋ ฅํฉ๋๋ค!"๋ฅผ ๋์ฐ๊ณ ๋ชจ๋ ๊ฐ ์ด๊ธฐํ ํ ์๊ฐ์๋ก ํฌ์ปค์ค๋ฅผ ์ด๋
- ์๊ฐ์ ์ฒญ ๋ฒํผ์ ๋๋ฌ ์ ํจ์ฑ ๊ฒ์ฌ๊ฐ ํต๊ณผ๋๋ฉด "์๊ฐ์ ์ฒญ์ด ์ ์์ ์ผ๋ก ์๋ฃ๋์์ต๋๋ค!"๋ฅผ ๋์ด ํ ๋ฉ์ธํ์ด์ง๋ก ์ด๋ํจ.
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>์๊ฐ์ ์ฒญ</title>
<script src="script.js"></script>
</head>
<body onload="document.frm.regist_month.focus();">
<%@ include file="topmenu.jsp" %>
<section>
<form name="frm" action="action.jsp" method="post">
<div class="title">์๊ฐ์ ์ฒญ</div>
<div class="wrapper">
<table class="insertBox" style="width: 600px;">
<colgroup>
<col width="30%;">
<col width="70%;">
</colgroup>
<tr>
<th>์๊ฐ์</th>
<td>
<input type="text" name="regist_month" maxlength="6">
2022๋
03์ ์)202203
</td>
</tr>
<tr>
<th>ํ์๋ช
</th>
<td>
<select name="c_name" onchange="fn_change1();">
<option value="">ํ์๋ช
</option>
<option value="10001">ํ๊ธธ๋</option>
<option value="10002">์ฅ๋ฐ์ฅ</option>
<option value="10003">์๊บฝ์ </option>
<option value="20001">์ฑ์ถํฅ</option>
<option value="20002">์ด๋ชฝ๋ฃก</option>
</select>
</td>
</tr>
<tr>
<th>ํ์๋ฒํธ</th>
<td><input type="text" name="c_no" readonly>์)10001</td>
</tr>
<tr>
<th>๊ฐ์์ฅ์</th>
<td>
<select name="class_area">
<option value="">๊ฐ์์ฅ์</option>
<option value="์์ธ๋ณธ์">์์ธ๋ณธ์</option>
<option value="์ฑ๋จ๋ถ์">์ฑ๋จ๋ถ์</option>
<option value="๋์ ๋ถ์">๋์ ๋ถ์</option>
<option value="๋ถ์ฐ๋ถ์">๋ถ์ฐ๋ถ์</option>
<option value="๋๊ตฌ๋ถ์">๋๊ตฌ๋ถ์</option>
</select>
</td>
</tr>
<tr>
<th>๊ฐ์๋ช
</th>
<td>
<select name="teacher_code" onchange="fn_change2();">
<option value="">๊ฐ์์ ์ฒญ</option>
<option value="100">์ด๊ธ๋ฐ</option>
<option value="200">์ค๊ธ๋ฐ</option>
<option value="300">๊ณ ๊ธ๋ฐ</option>
<option value="400">์ฌํ๋ฐ</option>
</select>
</td>
</tr>
<tr>
<th>์๊ฐ๋ฃ</th>
<td><input type="text" name="tuition" readonly>์</td>
</tr>
<tr>
<td style="text-align:center;" colspan="2">
<button class="btn" type="submit" onclick="fn_submit(); return false;">์๊ฐ์ ์ฒญ</button>
<button class="btn" type="button" onclick="fn_reset();" >๋ค์์ฐ๊ธฐ</button>
</td>
</tr>
</table>
</div>
</form>
</section>
<%@ include file="footer.jsp" %>
</body>
</html>
9. member.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ํ์์ ๋ณด์กฐํ</title>
</head>
<body>
<%@ include file="topmenu.jsp" %>
<section>
<div class="title">ํ์์ ๋ณด์กฐํ</div>
<div class="wrapper">
<table style="width: 700px;">
<tr>
<th>์๊ฐ์</th>
<th>ํ์๋ฒํธ</th>
<th>ํ์๋ช
</th>
<th>๊ฐ์๋ช
</th>
<th>๊ฐ์์ฅ์</th>
<th>์๊ฐ๋ฃ</th>
<th>๋ฑ๊ธ</th>
</tr>
<%
try{
Class.forName("oracle.jdbc.OracleDriver");
Connection con = DriverManager.getConnection
("jdbc:oracle:thin:@//localhost:1521/xe","system","1234");
Statement stmt = con.createStatement();
request.setCharacterEncoding("UTF-8");
String sql = "SELECT ";
sql+= "(SUBSTR(C.regist_month,0,4) ";
sql+= "|| '๋
' ";
sql+= "|| SUBSTR(C.regist_month,5,2) ";
sql+= "|| '์' )regist_month, ";
sql+= "C.c_no, ";
sql+= "M.c_name, ";
sql+= "T.class_name, ";
sql+= "C.class_area, ";
sql+= "('โฉ' || TO_CHAR(C.tuition,'fm999,999,999')) tuition, ";
sql+= "M.grade ";
sql+= "FROM TBL_TEACHER_202201 T, TBL_MEMBER_202201 M, TBL_CLASS_202201 C ";
sql+= "WHERE C.c_no = M.c_no ";
sql+= "AND C.teacher_code = T.teacher_code";
ResultSet rs = stmt.executeQuery(sql);
while(rs.next()){%>
<tr>
<td><%=rs.getString("regist_month") %></td>
<td><%=rs.getString("c_no") %></td>
<td><%=rs.getString("c_name") %></td>
<td><%=rs.getString("class_name") %></td>
<td><%=rs.getString("class_area") %></td>
<td><%=rs.getString("tuition") %></td>
<td><%=rs.getString("grade") %></td>
</tr>
<%}
con.close();
stmt.close();
}catch(Exception e){
}
%>
</table>
</div>
</section>
<%@ include file="footer.jsp" %>
</body>
</html>
10. result.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>๊ฐ์ฌ๋งค์ถํํฉ</title>
</head>
<body>
<%@ include file="topmenu.jsp" %>
<section>
<div class="title">๊ฐ์ฌ๋งค์ถํํฉ</div>
<div class="wrapper">
<table style="width: 500px;">
<tr>
<th>๊ฐ์ฌ์ฝ๋</th>
<th>๊ฐ์๋ช
</th>
<th>๊ฐ์ฌ๋ช
</th>
<th>์ด๋งค์ถ</th>
</tr>
<%
try{
Class.forName("oracle.jdbc.OracleDriver");
Connection con = DriverManager.getConnection
("jdbc:oracle:thin:@//localhost:1521/xe","system","1234");
Statement stmt = con.createStatement();
request.setCharacterEncoding("UTF-8");
//String sql = "SELECT C.teacher_code, T.class_name, T.teacher_name,('โฉ' || TO_CHAR(SUM(C.tuition),'fm999,999,999'))total FROM tbl_class_202201 C, tbl_teacher_202201 T WHERE C.teacher_code = T.teacher_code GROUP BY(C.teacher_code, T.class_name, T.teacher_name) ORDER BY C.teacher_code";
String sql = "SELECT ";
sql+= "C.teacher_code , ";
sql+= "T.class_name , ";
sql+= "T.teacher_name , ";
sql+= "('โฉ' || TO_CHAR(SUM(C.tuition),'fm999,999,999'))total ";
sql+= "FROM TBL_CLASS_202201 C, TBL_TEACHER_202201 T ";
sql+= "WHERE C.teacher_code = T.teacher_code ";
sql+= "GROUP BY(C.teacher_code, T.class_name, T.teacher_name) ";
sql+= "ORDER BY C.teacher_code";
ResultSet rs = stmt.executeQuery(sql);
while(rs.next()){%>
<tr>
<td><%=rs.getString("teacher_code") %></td>
<td><%=rs.getString("class_name") %></td>
<td style="text-align:right;"><%=rs.getString("teacher_name") %></td>
<td style="text-align:right;"><%=rs.getString("total") %></td>
</tr>
<%}
con.close();
stmt.close();
}catch(Exception e){
}
%>
</table>
</div>
</section>
<%@ include file="footer.jsp" %>
</body>
</html>
11. action.jsp (์๊ฐ์ ์ฒญ์์ ๋์ด์จ ๋ฐ์ดํฐ๋ฅผ DB์ ์ ์ฅ)
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%
request.setCharacterEncoding("UTF-8");
String regist_month = request.getParameter("regist_month");
String c_no = request.getParameter("c_no");
String class_area = request.getParameter("class_area");
String tuition = request.getParameter("tuition");
String teacher_code = request.getParameter("teacher_code");
int result = 0;
try{
Class.forName("oracle.jdbc.OracleDriver");
Connection con = DriverManager.getConnection
("jdbc:oracle:thin:@//localhost:1521/xe","system","1234");
String sql = "INSERT INTO TBL_CLASS_202201 ";
sql+= "VALUES (?,?,?,?,?)";
PreparedStatement pstmt = con.prepareStatement(sql);
pstmt.setString(1, regist_month);
pstmt.setString(2, c_no);
pstmt.setString(3, class_area);
pstmt.setInt(4, Integer.parseInt(tuition));
pstmt.setString(5, teacher_code);
result = pstmt.executeUpdate();
con.close();
pstmt.close();
}catch(Exception e){}
if(result == 1){
%>
<script>
alert("์๊ฐ์ ์ฒญ์ด ์ ์์ ์ผ๋ก ์๋ฃ๋์์ต๋๋ค!");
location = "index.jsp";
</script>
<%
}else{
%>
<script>
alert("์๊ฐ์ ์ฒญ ์คํจ! \n ๋ฉ์ธํ๋ฉด์ผ๋ก ์ด๋ํฉ๋๋ค");
location = "index.jsp";
</script>
<%
}
%>
์ด๋ ๊ฒ 11๊ฐ์ ํ์ผ๋ก ๊ณจํ์ฐ์ต์ฅ ํ์๊ด๋ฆฌ ํ๋ก๊ทธ๋จ์ ์ด์คํผ๋ ๋ก ๊ตฌํํด๋ณด์์ต๋๋ค.
*ONLY ์ํ์ ํ๋ฑ ๋๋ด๊ธฐ์ํ ๋ฐฉ๋ฒ์ผ๋ก ์ฐธ๊ณ ๋ง ํด์ฃผ์ธ์ ใ ใ ..
insert ๊ฐ ์ข ํท๊ฐ๋ฆด์ ์๋๋ฐ์ ์ฐจ๋ถํ ์ฐ์ตํด๋ณด์๊ณ ์๋์ฒ๋ผ ํ๊ธ ์ปฌ๋ผ๋ช ๋ ๊ฐ์ด ์ ์ด๋๊ธฐ ์ถ์ฒ๋๋ ค์
ํ์์๋ ์ํ๋ค๊ฐ๋ ๋ง์ ์ํ์ฅ์์๋ ์ ํ๋์๊ฐ + ๊ตฌ๊ธ๋ง์ ํ ์์๋ค๋ ์๋ฐ๊ฐ(?) ์ด ์๋๋ผ๊ตฌ์ใ ใ
์ฐ์ต์ ๋ง์ดํ๋๊ฒ ์ค์ํ๊ฑฐ๊ฐ์์ ใ ใ ๋ค๋ค ํฉ๊ฒฉํ์ธ์ ํ์ดํ ~~!