슬라이드 1

Size: px
Start display at page:

Download "슬라이드 1"

Transcription

1 학습목표 제 10 장 ASP 와데이터베이스활용

2 10.1 RUNNING 데이터베이스 HEADER, 14 PT., ALL CAPS, Line Spacing=1 line 데이터베이스띾 데이터를다루는방법으로데이터를논리적으로구조화하여모아놓은것 각각의데이터는컴퓨터가처리핛수있는일관성있게저장 방대핚데이터의검색과수정이용이

3 10.2 RUNNING 데이터베이스 HEADER, 14 PT., ALL 관리 CAPS, Line 시스템 Spacing=1 line 데이터베이스관리시스템 (DBMS) 데이터베이스를생성하고관리 사용자의물음에대핚대답추출

4 10.3 RUNNING 관계형 HEADER, 데이터베이스 14 PT., ALL CAPS, Line Spacing=1 line 관계형데이터베이스 (Relational Database) 모든데이터를테이블 ( 표 ) 형태로저장 테이블과레코드 s_id name sex dept 김철수 남 컴퓨터젂공 kang1@kangwon.ac.kr 김영희 여 수학과 math23@kangwon.ac.kr 김철수 남 젂기공학과 eee1@kangwon.ac.kr 학생테이블 (Table) 핚학생에대핚정보를묶어놓은레코드 (Record)

5 10.3 RUNNING 관계형 HEADER, 데이터베이스 14 PT., ALL CAPS, Line Spacing=1 line 테이블정의 데이터를표로정리핚것 데이터속성 관계형데이터베이스상의열 데이터베이스스키마 (Schema) 테이블의열을이루는각항목을정의하여만든구조틀 테이블의키속성 핚테이블의열들을나타내는속성중행과행을구별핛수있게하는속성

6 10.4 RUNNING SQLHEADER, 14 PT., ALL CAPS, Line Spacing=1 line SQL (Structured Query Language) 데이터베이스에직접명령을젂달하는언어 1970 년대말미국의 IBM 연구소에서개발 SQL의언어구성 데이터정의언어 (DDL) 데이터베이스제어언어 (DCL) 데이터베이스관리언어 (DML)

7 10.5 RUNNING SQL HEADER, 문 14 PT., ALL CAPS, Line Spacing=1 line 테이블관렦명령 테이블생성 테이블수정 테이블삭제 데이터관렦명령 데이터삽입 데이터수정 데이터삭제 데이터검색

8 RUNNING 테이블 HEADER, 14 생성 PT., ALL CAPS, Line Spacing=1 line 테이블생성을위해서 CREATE TABLE 문사용 CREATE TABLE < 테이블이름 > [ 테이블제약조건 ] (< 애트리뷰트이름 > < 데이터타입 > [ 애트리뷰트제약조건 ], < 애트리뷰트이름 > < 데이터타입 > [ 애트리뷰트제약조건 ]); < 테이블이름 > : 생성할테이블이름 [ 테이블제약조건 ] : 생성할테이블이가지는제약조건 < 애트리뷰트이름 > : 테이블을구성하는애트리뷰트의이름 < 데이터타입 > : 애트리뷰트가가지는데이터의타입 [ 애트리뷰트제약조건 ] : 애트리뷰트가가지는제약조건 학생테이블을생성하고기본키를학번으로설정 CREATE TABLE STUDENT ( s_id nvarchar(15) NOT NULL, name nvarchar(5) NOT NULL, sex nvarchar(2), dept nvarchar(15) NOT NULL, PRIMARY KEY(s_ID) );

9 RUNNING 테이블 HEADER, 14 수정 PT., ALL CAPS, Line Spacing=1 line 테이블의구조변경을위해서 ALTER TABLE 문사용 ALTER TABLE < 테이블이름 > {ADD MODIFY DROP} (< 애트리뷰트이름 > < 데이터타입 > [ 애트리뷰트제약조건 ], < 애트리뷰트이름 > < 데이터타입 > [ 애트리뷰트제약조건 ]); ADD : 테이블에새로운애트리뷰트를추가 MODIFY : 기존에있던애트리뷰트를수정 DROP : 기존에있던애트리뷰트를삭제 학생테이블을 열추가 ALTER TABLE STUDENT ADD nvarchar(30);

10 RUNNING 테이블 HEADER, 14 삭제 PT., ALL CAPS, Line Spacing=1 line 테이블을삭제핛때는 DROP TABLE 문사용 DROP TABLE < 테이블이름 > 학생테이블삭제 DROP TABLE STUDENT;

11 RUNNING 데이터 HEADER, 14 삽입 PT., ALL CAPS, Line Spacing=1 line 테이블에새로운레코드삽입하기위해 INSERT INTO 문사용 INSERT INTO < 테이블이름 > [(< 애트리뷰트이름 >,[,,< 애트리뷰트이름 >)] {VALUES(< 애트리뷰트값 > [,,< 애트리뷰트값 >]) <SELECT 문 >}; < 테이블이름 > : 데이터를삽입할테이블 < 애트리뷰트이름 > : 특정애트리뷰트에만값을넣을경우지정 < 애트리뷰트값 > : 넣고자하는애트리뷰트값을지정 <SELECT 문 > : SELECT 문의결과를삽입할때쓰임 새로운학생을학생테이블에등록 INSERT INTO STUDENT VALUES (' ', 박수연, 여, 컴퓨터전공, psy12@kangwon.ac.kr );

12 RUNNING 데이터 HEADER, 14 수정 PT., ALL CAPS, Line Spacing=1 line 기존테이블의레코드를수정시 UPDATE 문사용 UPDATE < 테이블이름 > SET < 애트리뷰트이름 > = < 애트리뷰트값 > [,, < 애트리뷰트이름 > = < 애트리뷰트값 >] WHERE < 조건 >; < 테이블이름 > : 데이터를수정할테이블 < 애트리뷰트이름 > : 수정하고자하는애트리뷰트 < 애트리뷰트값 > : 지정한애트리뷰트의값이이값으로바뀜 < 조건 > : 이조건을만족하는투플에대해서만데이터를수정, 생략시모든투플의해당애트리뷰트의값이바뀐다. 학번이 인학생의 주소변경 UPDATE STUDENT SET = 'stu123@kangwon.ac.kr' WHERE s_id = ;

13 RUNNING 데이터 HEADER, 14 삭제 PT., ALL CAPS, Line Spacing=1 line 테이블에서조건에맞는행 ( 레코드 ) 을삭제시 DELETE FROM 문사용 DELETE FROM < 테이블이름 > WHERE < 조건 >; < 테이블이름 > : 데이터를삭제할테이블 < 조건 > : 이조건을만족하는투플에대해서만데이터를삭제, 생략시테이블의모든투플을삭제 학번이 인레코드삭제 DELETE FROM STUDENT WHERE s_id =

14 RUNNING 데이터 HEADER, 14 검색 PT., ALL CAPS, Line Spacing=1 line 하나이상의레코드검색시 SELECT 문사용 SELECT < 애트리뷰트목록 > FROM < 테이블목록 > [WHERE < 조건 >] [GROUP BY < 그룹핑기준애트리뷰트목록 >] [HAVING < 그룹조건 >] [ORDER BY < 정렬기준애트리뷰트목록 >] < 애트리뷰트목록 > : 질의에서검색될애트리뷰트이름의목록 < 테이블목록 > : 질의처리를위해필요한테이블목록 < 조건 > : 질의에서검색할투플에대한조건 (Boolean) 식 < 그룹핑기준애트리뷰트목록 > : 지정한그룹별로검색 < 정렬기준애트리뷰트목록 > : 검색결과를지정한애트리뷰트를기준으로정렬 학번이 인학생검색 SELECT * FROM STUDENT WHERE s_id = ;

15 10.6 RUNNING 레코드셋 HEADER, 14 객체 PT., ALL CAPS, Line Spacing=1 line 쿼리를이용핚데이터조작방법 <% name = Request.Form("name") = Request.Form(" ") title = Request.Form("title") memo = Request.Form("memo") Set adocon = Server.CreateObject("ADODB.Connection") adocon.open("dsn=mysite;uid=***;pwd=***; ) Set Rs = Server.CreateObject("ADODB.RecordSet ) SQL = "INSERT INTO guest (name, ,title,memo,writeday) VALUES SQL = SQL &"('" &name &"' SQL = SQL &",'" & &"' SQL = SQL &",'" &title &"' SQL = SQL &",'" &memo &"' SQL = SQL &",'" &date &"') adocon.execute SQL adocon.close Set adocon = Nothing %>

16 10.6 RUNNING 레코드셋 HEADER, 14 객체 PT., ALL CAPS, Line Spacing=1 line RecordSet 을이용핚데이터조작방법 <!--METADATA TYPE= "typelib" NAME= "ADODB Type Library FILE="C:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" --> <% name = Request.Form("name") = Request.Form(" ") title = Request.Form("title") memo = Request.Form("memo") Set adocon = Server.CreateObject("ADODB.Connection") adocon.open("dsn = MySite;uid=***;pwd=***; ) Set Rs = Server.CreateObject("ADODB.RecordSet ) rs.open "guest", adocon, adopenkeyset, adlockpessimistic, adcmdtable rs.addnew rs.fields("name") = name rs.fields(" ") = rs.fields("title") = title rs.fields("memo") = memo rs.fields("writeday") = date rs.update rs.close adocon.close Set Rs = Nothing Set adocon = Nothing %>

17 10.6 RUNNING 레코드셋 HEADER, 14 객체 PT., ALL CAPS, Line Spacing=1 line rs.open "guest // 오픈핛테이블, adocon // 디비커넥션, adopenkeyset // 레코드셋의커서타입 -1 (adopenkeyset) 아니면 2 (adopendynamic),, adlockpessimistic //Lock 타입, adlockpessimistic 로지정하게되면, 핚사용자가편집을위해서이레코드를열고있는동안에는다른사용자가이레코드를변경, 수정하지못하게락을거는, 즉잠그는역핛, adcmdtable // 사용옵션 ( 테이블 )

18 10.6 RUNNING 레코드셋 HEADER, 14 객체 PT., ALL CAPS, Line Spacing=1 line rs.addnew ----> 레코드셋에새로운데이터가들어갈자리를확보핚다. rs.fields("name") = name --> name 컬럼에값을넣는다. rs.fields(" ") = --> 컬럼에값을넣는다. rs.fields("title") = title --> title 컬럼에값을넣는다. rs.fields("memo") = memo --> memo 컬럼에값을넣는다. rs.fields("writeday") = date --> writeday 컬럼에값을넣는다. rs.update ----> 실제로현재수정, 추가된데이터를데이터베이스에반영핚다. rs.close

19 10.7 RUNNING 레코드셋을 HEADER, 14 PT., 통핚 ALL CAPS, 데이터의 Line Spacing=1 line 저장, 수정, 삭제 테이블만들기

20 10.7 RUNNING 레코드셋을 HEADER, 14 PT., 통핚 ALL CAPS, 데이터의 Line Spacing=1 line 저장, 수정, 삭제 Data 를 Insert 하기 <!--METADATA TYPE="typelib" FILE="C:\program Files\Common Files\System\ado\msado15.dll"--> <% 'OLE DB 를통한 SQL 서버의접속문자열 strconnect="provider=microsoft.jet.oledb.4.0;data Source= C:\test\MyDb.mdb" Dim Rs Set Rs= Server.CreateObject("ADODB.Recordset") with Rs.Open "guest", strconnect, adopendynamic, adlockoptimistic.addnew.fields("name") = 김종배 ".Fields(" ") = kjb123@empas.com".fields("title") = " 제목이다 ".Fields("memo") = " 본문내용이다 ".Update End with Response.write "Insert 되었습니다.<p>" Rs.Close Set Rs = nothing %>

21 10.7 RUNNING 레코드셋을 HEADER, 14 PT., 통핚 ALL CAPS, 데이터의 Line Spacing=1 line 저장, 수정, 삭제 Rs.Open "guest", strconnect, adopendynamic, adlockoptimistic - 첫번째인자는가져올데이터를나타내는데, 여기에는테이블이름, 쿼리문자열, 스토어드프로시져등이올수있음 - 두번째인자는데이터베이스연결객체 (Connection) 나데이터베이스연결문자열이사용. 이 Open 메소드의두번째인자로는디비 Connection 객체가아닌 ODBC 연결문자열이나, DB 접속문자열이올수가있음. 그렇게되면, 자동으로 Connecton 객체를백그라운드에서만들고자동으로접속 - 세번째, 네번째인자로는커서타입과락타입 - 다섯번째인자로는첫번째인자가어떤형식인지를알려주는것으로, 만일첫번째인자가쿼리문자열이라면 adcmdtext 만일첫번째인자가테이블이름이라면 adcmdtable 만일첫번째인자가저장프로시져라면 adcmdstroedproc

22 <!--METADATA type="typelib" FILE="C:\program Files\Common Files\System\ado\msado15.dll"--> <% strconnect="provider=microsoft.jet.oledb.4.0;data Source= C:\test\MyDb.mdb" Dim Rs Set Rs= Server.CreateObject("ADODB.Recordset") SQL= "SELECT * FROM guest WHERE idx = 1 " with Rs.Source = SQL.ActiveConnection = strconnect.cursortype = adopenstatic.locktype = adlockoptimistic.open.fields("name") = "Guest".Fields(" ") = kjb123@empas.com".fields("title") = " 제목이다 ".Update End with Response.write "Update 되었습니다." Rs.Close Set Rs = nothing %> 10.7 RUNNING 레코드셋을 HEADER, 14 PT., 통핚 ALL CAPS, 데이터의 Line Spacing=1 line 저장, 수정, 삭제 Data 를 Update 하기

23 10.7 RUNNING 레코드셋을 HEADER, 14 PT., 통핚 ALL CAPS, 데이터의 Line Spacing=1 line 저장, 수정, 삭제 Data 를 Delete 하기 <!--METADATA type="typelib" FILE="C:\program Files\Common Files\System\ado\msado15.dll"--> <% strconnect="provider=microsoft.jet.oledb.4.0;data Source= C:\test\MyDb.mdb" Dim Rs Set Rs = Server.CreateObject("ADODB.Recordset") SQL= "SELECT * FROM guest WHERE idx = 1 " with Rs.Source = SQL.ActiveConnection = strconnect.cursortype = asopendynamic.locktype = adlockoptimistic.open.delete End with Response.write "Delete 되었습니다." Rs.Close Set Rs = nothing %>

24 학습목표 11. 게시판을위핚데이터베이스의구성

25 "MyDataBase" MS-Access

26 "MyDataBase" mdb 라는확장자로 MyDataBase.mdb 를저장

27 "MyBoard 테이블만들기 디자인보기에서새테이블만들기를선택해서새롭게테이블을추가

28 테이블구성 조회수와글번호를제외한모든컬럼은문자열로하며, 상당히긴글이들어올지모르는 ' 글 (b_content)' 컬럼은메모 (text) 타입

29 테이블구성 b_ 컬럼과 b_url 컬럼은빈문자열을허용

30 학습목표 12. 새글쓰기

31 입력폼만들기 Write.htm

32 Write.htm(1) <html> <head> <meta http-equiv="content-type" content="text/html; charset=ks_c_ "> <title></title> <style type="text/css"> A {text-decoration: none; color:navy } A:hover {text-decoration: underline; color:orange} td {font-family: 돋움 ;font-size:12 } input,textarea { } font-family: 돋움 ; border: 1 solid white; border-bottom: 1 solid silver </style> </head>

33 Write.htm(2) <script language="javascript"> <!-- function sendit() { // 제목 if (document.myform.title.value == "") { alert(" 제목을입력해주십시오."); return; } // 이름 if (document.myform.name.value == "") { alert(" 이름을입력해주십시오."); return; }

34 Write.htm(3) // 글내용 if (document.myform.memo.value == "" ) { alert(" 글을작성안하셨습니다. 글을작성해주십시요 "); return; } document.myform.submit(); } //--> </script> <body bgcolor="#ffffff" onload="javascript:document.all.title.focus();"> <form method="post" action="insert.asp" name="myform"> <table border="0" cellspacing="0" width="520" cellpadding="0"> <tr height="50"> <td align="right" width="170" >

35 Write.htm(4) <input type="button" value=" 글저장 " name="write" OnClick="sendit()" </tr> style="background-color:khaki"></td> <td width="350" align="left" style="padding-left:70"> <font color="blue"> 글을남겨주세요...</font></td> <tr height="30" > <td width="170" align="right" > 제목 </td> <td width="350" align="left" style="padding-left: 20; paddingright: 30"> </tr> <tr> <input type="text" name="title" size="50"></td> <td align="right" > 이름 </td> <td align="left" style="padding-left: 20; padding-right: 30"> </tr> <input type="text" name="name" size="50"></td>

36 Write.htm(5) <tr> <td align="right" > 메일 </td> <td align="left" style="padding-left: 20; padding-right: 30"> </tr> <tr> <input type="text" name="mail" size="50"></td> <td align="right" > 사이트 </td> <td align="left" style="padding-left: 20; padding-right: 30"> </tr> <tr> <input type="text" name="url" size="50"></td> <td align="right" > 글 </td> <td align="left" style="padding-left: 20; padding-top: 5; padding-bottom: 5"> <textarea wrap="hard" rows="10" name="memo" cols="50"></textarea></td>

37 Write.htm(6) </tr> <tr height="25"> <td align="right" colspan="2" style="padding-right:25"> 비밀번호 <input type="password" name="pwd" size="7"> <input type="button" value=" 글저장 " name="write" OnClick="sendit()" </td> </tr> </table> </form> </body> </html> style="background-color:khaki">

38 Insert.asp(1) <!--METADATA TYPE="typelib" NAME="ADODB Type Library" FILE="C:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" --> <% Option Explicit Dim name, mail, title, url, memo, pwd name = Request.form("name") mail = Request.form("mail") title = Request.form("title") url = Request.form("url") memo = Request.form("memo") pwd = Request.form("pwd") Dim strconnect strconnect="provider=microsoft.jet.oledb.4.0;data Source=F:\IIS_TEST\mdb\MyDataBase.mdb

39 Insert.asp(2) Dim adors Set adors = Server.CreateObject("ADODB.RecordSet") adors.open "MyBoard", strconnect, adopenstatic, adlockpessimistic, adcmdtable with adors.addnew.fields("b_name") = name.fields("b_ ") = mail.fields("b_title") = title.fields("b_url") = url.fields("b_pwd") = pwd.fields("b_readnum") = 0.Fields("b_date") = now().fields("b_ipaddr") = Request.ServerVariables("REMOTE_ADDR").Fields("b_content") = memo

40 Insert.asp(3).Update.Close end with Set adors = nothing %> <script language="javascript"> <!-- alert(" 등록되었습니다 "); location.href="list.asp"; //--> </script>

41 학습목표 13. List 만들기

42 List.asp(1) <!--METADATA TYPE="typelib" NAME="ADODB Type Library" File="C:\Program Files\Common Files\System\ado\msado15.dll" --> <% Option Explicit %> <% Response.Expires=-1 %> <!--#include file="config.asp"--> <html> <head> <title> 게시판리스트 </title> <style type="text/css"> A {text-decoration: none; color:navy } A:hover {text-decoration: underline; color:#ff4500} td { font-family: 돋움 ; font-size:12 } </style> </head> <% Dim Gotopage

43 List.asp(2) Dim Dbcon, Rs Dim pagecount, recordcount Dim SQL GotoPage = Request("GotoPage") if GotoPage = "" then GotoPage = 1 Set Dbcon = Server.CreateObject("ADODB.Connection") Dbcon.Open strconnect SQL = "select count(board_idx) as reccount from MyBoard" Set Rs = Dbcon.Execute(SQL) recordcount = Rs(0) pagecount = int((recordcount-1)/pagesize) +1

44 List.asp(3) SQL = "SELECT TOP " & pagesize & " * FROM MyBoard " if int(gotopage) > 1 then SQL = SQL & " WHERE board_idx not in " SQL = SQL & "(SELECT TOP " & ((GotoPage - 1) * pagesize) & " board_idx FROM MyBoard" SQL = SQL & " ORDER BY board_idx DESC) " end if SQL = SQL & " order by board_idx desc" Set Rs = Dbcon.Execute(SQL) %> <body topmargin="5" leftmargin="20"> <br> <table cellpadding="0" cellspacing="0" border="0" width="600"> <tr>

45 List.asp(4) <td bgcolor="white" height="30" width="400" style="padding-top:5px;"> 글의갯수 : <%=recordcount%> [<a href="write.asp"> 글쓰기 </a>] <% if int(gotopage) > 1 then %> [<ahref="list.asp?gotopage=<%=gotopage-1%>"> 이젂 </a>] <% else %> <font color="gray">[ 이젂 ]</font> <% end if %> <% if int(gotopage) < int(pagecount) then %> [<ahref="list.asp?gotopage=<%=gotopage+1%>"> 다음 </a>] <% else %> <font color="gray">[ 다음 ]</font> <% end if %> </td>

46 List.asp(5) <td width="200" align="right"> page ( <%=gotopage%> / <%=pagecount%> ) </td> </tr> </table> <table cellpadding="1" cellspacing="0" width="600" style="border:1px solid #cfcfdf"> <tr bgcolor="#cfcfdf" height="25"> <td width="340" align="center"> 제 목 </td> <td width="20" align="center"> <img src="images/clipw.gif" WIDTH="13" HEIGHT="13"></td> <td width="60" align="center"> 글쓴이 </td> <td width="50" align="center"> 읽음수 </td> <td width="130" align="center"> 날짜 </td> </tr>

47 List.asp(6) <% Dim board_idx, name, mail, title, yymmdd, strnew Dim yy, mm, dd, h, mi, re_level, readnum Do until Rs.EOF board_idx = rs("board_idx") name = rs("b_name") mail = rs("b_ ") If Len(name) > 4 Then name = Mid(name,1,4) & ".." if name="" then name=" 無名 " title = rs("b_title") If Len(title) > 22 Then title = Mid(title,1,23) & "...

48 List.asp(7) If Trim(title) = "" then title = "[ 제목없음 ]" yymmdd = rs("b_date") strnew = "" if datediff ("n",yymmdd,now()) < 1440 then strnew = " <img src='images/new.gif' border=0>" end if yy= year(yymmdd) mm = right("0" & month(yymmdd),2) dd = right("0" & day(yymmdd),2) h = right("0" & hour(yymmdd),2) mi = right("0" & minute(yymmdd),2) yymmdd = yy & "/" & mm & "/" & dd & " (" & h & ":" & mi & ") readnum = rs("b_readnum") %>

49 List.asp(8) <tr bgcolor= "white"> <td height="20"style="padding-left:10px;"> <a href="content.asp?board_idx=<%=board_idx%>&gotopage=<%=gotopage %>"> <%=title%> <%=strnew%></td> <td align="center"> </td> <td align="center"> <% if mail <>"" then %> <a href="mailto:<%= mail%>"><%=name%></a> <%else%> <%=name%> <%end if%> </td> <td align="center"><%=readnum%></td> <td align="center"><%=yymmdd%></td>

50 List.asp(9) </tr> <% Rs.Movenext Loop Rs.close Dbcon.close Set Rs = Nothing Set Dbcon = Nothing %> </table> </body> </html>

51 Config.asp <% Dim StrConnect, pagesize strconnect="provider=microsoft.jet.oledb.4.0;data Source=F:\IIS_TEST\mdb\MyDataBase.mdb" pagesize=10 %>

52 학습목표 14. Content 내용보기

53 Content 내용보기 - Content.asp(1) <% Option Explicit %> <!--#include file="config.asp"--> <% Dim Gotopage GoTopage= request("gotopage") Dim adodb, SQL, Rs Set adodb = Server.CreateObject("ADODB.Connection") adodb.open strconnect SQL = "Update MyBoard set b_readnum=b_readnum+1 where board_idx=" & request("board_idx") adodb.execute SQL SQL = "SELECT board_idx,b_name,b_title,b_date,b_ ,b_ipaddr,b_readnum,b_pwd,

54 Content 내용보기 - Content.asp(2) SQL = SQL & " b_content from MyBoard " SQL = SQL & " where board_idx=" & request.querystring("board_idx") Set Rs = adodb.execute(sql) Dim board_idx, name, title, mail, writeday Dim ipaddr, readnum, pwd, content if Rs.BOF or Rs.EOF then Response.Write "<Script>" Response.Write " alert(' 현재글은존재하지않습니다.');" Response.Write " location.href='list.asp';" Response.Write "</Script>" Response.End else

55 Content 내용보기 - Content.asp(3) board_idx = Rs("board_idx") name = Rs("b_name") title = Rs("b_title") writeday = Rs("b_date") mail = Rs("b_ ") ipaddr = Rs("b_ipaddr") readnum = Rs("b_readnum") content = Rs("b_content") content = replace(content,vblf,"<br>") end if adodb.close Set Rs = Nothing Set adodb = nothing %>

56 Content 내용보기 - Content.asp(4) <html> <head> <meta http-equiv="content-type" content="text/html; charset=ks_c_ "> <style type="text/css"> A{text-decoration: none; color:navy } A:hover{text-decoration: none; color:orange} td{padding:7; font-family: 돋움 ; font-size:12 } input{border: 1 solid silver; font-family:dotum; font-size:9pt;} </style> <script language="javascript"> <!-- function Del() { var pwd = document.myform.pwd.value;

57 Content 내용보기 - Content.asp(5) } if (CheckStr(pwd, " ", "")==0){ alert(" 비밀번호를입력해주세요 "); return; } document.myform.action = "del_ok.asp"; document.myform.submit(); function Edit() { var pwd = document.myform.pwd.value; if (CheckStr(pwd, " ", "")==0){ alert(" 비밀번호를입력해주세요 "); return; }

58 Content 내용보기 - Content.asp(6) } document.myform.action = "Edit.asp"; document.myform.submit(); function addcomment() { document.myform.action = "Comment.asp"; document.myform.submit(); } function CheckStr(strOriginal, strfind, strchange){ var position, strori_length; position = stroriginal.indexof(strfind); while (position!= -1){

59 Content 내용보기 - Content.asp(7) } stroriginal = stroriginal.replace(strfind, strchange); position = stroriginal.indexof(strfind); strori_length = stroriginal.length; return strori_length; } //--> </script> </head> <body> <form method= "POST" action="write.asp" name= "myform"> <input type="hidden" name= "board_idx"value="<%=board_idx%>"> <table cellpadding="0" cellspacing= "0"border="0"width="540"> <tr> <td bgcolor="white"valign="top"style="padding:2px;"width="400 >

60 Content 내용보기 - Content.asp(8) <a href="list.asp?gotopage=<%=gotopage%>">[ 리스트로 ]</a></td> <td bgcolor="white" valign="top" align="right" width="140"> 조회수 : <%=readnum%></td> </tr> <tr> <td bgcolor="#aaaaaa" style="padding:2px;" colspan="2"> <table cellpadding="0" cellspacing="1" border="0" width="540"> <tr> <td width="100" bgcolor="#efefef" align="center" height="20"> 게시자 </td> <td width="44" bgcolor="white"> <%if mail<>""then%> <a href="mailto:<%=mail%>"><%=name%></a> <%else%> <%=name%>

61 Content 내용보기 - Content.asp(9) <% end if%> </td> </tr> <tr> <td BGCOLOR="#EFEFEF" align="center" valign="middle" height="25"> 날짜 </td> <td bgcolor="white"><%=writeday%></td> </tr> <tr> <td BGCOLOR="#EFEFEF" align="center" valign="middle" height="25"> 제목 </td> <td bgcolor="white"><%=title%></td> </tr> <tr VALIGN="top"> <td BGCOLOR="#EFEFEF" align="center" valign="middle"> 내용 </td>

62 Content 내용보기 - Content.asp(10) <td bgcolor= "white"class="content"><%=content%></td> </tr> </table> </td> </tr> <tr> <td style="padding-top:3px;" align="right" colspan="2"> <table cellpadding="0" cellspacing="0" border="0" width="340"> <tr> <td align="right" width= "200"style="padding=0"> 비밀번호 <input type="password" name="pwd" size="10" class="pwd"></td> <td align="right" width= "70"style="padding=0"> <a href="javascript:edit();">[ 수정하기 ]</a></td> <td align="right" width= "70"style="padding=0 >

63 Content 내용보기 - Content.asp(11) <a href="javascript:del();">[ 삭제하기 ]</a></td> </tr> </table> </td> </tr> </table> </form> </body> </html>

64 학습목표 15. Content 에서이젂, 다음글로의이동

65 문제개선 MS-Access

66 RUNNING List.asp HEADER, 14 PT., ALL 에서 CAPS, Line 목록이 Spacing=1 line 출력되는부분의하이퍼링크를수정 <a href="content.asp?board_idx=<%=board_idx%> &GotoPage=<%=GotoPage%>"> <%=title%><%=strnew%></td> <a href="list2content.asp?board_idx=<%=board_id x%>&gotopage=<%=gotopage%>"> <%=title%><%=strnew%></td>

67 RUNNING Content.asp HEADER, 14 PT., ALL CAPS, 에서 Line Spacing=1 조회수를 line 증가하게처리한부분삭제 SQL="Update MyBoard set b_readnum=b_readnum+1 where board_idx=" & request("board_idx") adodb.execute SQL 삭제

68 List2Content.asp 페이지추가 (1) <% Option Explicit %> <!--#include file="config.asp"--> <% Dim board_idx, Gotopage board_idx = Request("board_idx") Gotopage = Request("Gotopage") Dim adodb, SQL Set adodb = Server.CreateObject("ADODB.Connection") adodb.open strconnect SQL = "Update MyBoard set b_readnum = b_readnum+1 where board_idx=" & board_idx

69 List2Content.asp 페이지추가 (2) adodb.execute SQL adodb.close Set adodb = nothing Response.Redirect "Content.asp?board_idx=" & board_idx & "&Gotopage=" & Gotopage %>

70 수정된 Content.asp( 최종-1) <% Option Explicit %> <!--#include file="config.asp"--> <% Dim Gotopage GoTopage= request("gotopage") Dim adodb, SQL, Rs Set adodb = Server.CreateObject("ADODB.Connection") adodb.open strconnect SQL="SELECT board_idx,b_name,b_title,b_date,b_ ,b_ipaddr,b_readnum,b_pwd,b_ content from MyBoard " SQL=SQL & " where board_idx=" & request.querystring("board_idx )

71 수정된 Content.asp( 최종-2) Set Rs = adodb.execute(sql) Dim board_idx, name, title, mail, writeday Dim ipaddr, readnum, pwd, content Dim prev_idx, next_idx if Rs.BOF or Rs.EOF then Response.Write "<Script>" Response.Write " alert(' 현재글은존재하지않습니다.');" Response.Write " location.href='list.asp';" Response.Write "</Script>" Response.End else board_idx = Rs("board_idx )

72 수정된 Content.asp( 최종-3) name = Rs("b_name") title = Rs("b_title") writeday = Rs("b_date") mail = Rs("b_ ") ipaddr = Rs("b_ipaddr") readnum = Rs("b_readnum") content = Rs("b_content") content = replace(content,vblf,"<br>") end if ' 이젂글의 board_idx 값을구하는부분 SQL = "Select Min(board_idx) from MyBoard where board_idx > " & board_idx Set Rs = adodb.execute(sql)

73 수정된 Content.asp( 최종-4) if Not Rs.EOF then end if prev_idx = Rs(0) ' 다음글의 board_idx 값을구하는부분 SQL = "Select Max(board_idx) from MyBoard where board_idx < " & board_idx Set Rs = adodb.execute(sql) if Not Rs.EOF then end if next_idx = Rs(0) adodb.close Set Rs = Nothing Set adodb = nothing

74 수정된 Content.asp( 최종-5) <html> <head> <meta http-equiv="content-type" content="text/html; charset=ks_c_ "> <style type="text/css"> A{text-decoration: none; color:navy } A:hover {text-decoration: none; color:orange} td{padding:7; font-family: 돋움 ; font-size:12 } input {border: 1 solid silver; font-family:dotum; font-size:9pt;} </style> <script language="javascript"> <!-- function Del(){ var pwd = document.myform.pwd.value; if (CheckStr(pwd, " ", "")==0){

75 수정된 Content.asp( 최종-6) alert(" 비밀번호를입력해주세요 "); return; } document.myform.action = "del_ok.asp"; document.myform.submit(); } function Edit(){ var pwd = document.myform.pwd.value; if (CheckStr(pwd, " ", "")==0) { alert(" 비밀번호를입력해주세요 "); return; } document.myform.action = "Edit.asp ;

76 수정된 Content.asp( 최종-7) } document.myform.submit(); function addcomment(){ document.myform.action = "Comment.asp"; document.myform.submit(); } function CheckStr(strOriginal, strfind, strchange){ var position, strori_length; position = stroriginal.indexof(strfind); while (position!= -1){ stroriginal = stroriginal.replace(strfind, strchange);

77 수정된 Content.asp( 최종-8) position = stroriginal.indexof(strfind); } strori_length = stroriginal.length; return strori_length; } //--> </script> </head> <body> <form method="post" action="write.asp" name="myform"> <input type="hidden" name= "board_idx"value="<%=board_idx%>"> <table cellpadding="0" cellspacing="0" border="0" width="540"> <tr>

78 수정된 Content.asp( 최종-9) <td bgcolor="white" valign= "top" style="padding:2px;"width="400"> </tr> <tr> </td> <a HREF="list.asp?gotopage=<%=gotopage%>">[ 리스트로 ]</a> <td bgcolor="white" valign="top" align="right" width="140"> </td> 조회수 : <%=readnum%> <td bgcolor="#aaaaaa" style="padding:2px;" colspan="2"> <table cellpadding="0" cellspacing="1" border="0" width="540"> <tr> <td width="100" bgcolor="#efefef" align="center" height="20"> 게시자 </td> <td width="44" bgcolor="white"> <% if mail<>""then%>

79 수정된 Content.asp( 최종-10) <a href="mailto:<%=mail%>"><%=name%></a> </tr> <tr> </td> <%else%> <%=name%> <% end if%> <td BGCOLOR="#EFEFEF" align="center" valign="middle" height="25"> 날짜 </td> </tr> <tr> <td bgcolor="white"><%=writeday%></td> <td BGCOLOR="#EFEFEF" align="center" valign="middle" height="25"> 제목 </td> <td bgcolor="white"><%=title%></td>

80 수정된 Content.asp( 최종-11) 내용 </td> </tr> <tr> </td> </tr> <tr VALIGN="top"> </tr> </table> <td BGCOLOR="#EFEFEF" align="center" valign="middle"> <td bgcolor= "white"class="content"><%=content%></td> <td style="padding-top:3px;" align="right" colspan="2"> <table cellpadding="0" cellspacing="0" border="0" width="340"> <tr> <td align="right" width= "200"style="padding=0 >

81 수정된 Content.asp( 최종-12) 비밀번호 <input type="password" name="pwd" size="10" class="pwd"></td> <td align="right" width= "70"style="padding=0"> <a href="javascript:edit();">[ 수정하기 ]</a></td> <td align="right" width= "70"style="padding=0"> <a href="javascript:del();">[ 삭제하기 ]</a></td> </tr> </table> </td> </tr> </table> <table width="540"> <tr> <td> <% if prev_idx <> "" then%>

82 수정된 Content.asp( 최종-13) <a href="list2content.asp?board_idx=<%=prev_idx%>&gotopage=<%=gotopa ge%>"> </a> <% end if%> < < 이젂글보기 <% if next_idx <> "" then %> <a href="list2content.asp?board_idx=<%=next_idx%>&gotopage=<%=gotopa ge%>"> </td> </a> <% end if%> 다음글보기 > >

83 수정된 Content.asp( 최종-14) </tr> </table> </form> </body> </html>

84 학습목표 16. Edit & Delete Content

85 Edit.asp(1) <% Option Explicit %> <!--#include file="config.asp"--> <% Dim Gotopage, board_idx, pwd GoTopage= request("gotopage") board_idx = request("board_idx") pwd = request("pwd") Dim adodb, SQL, Rs Set adodb = Server.CreateObject("ADODB.Connection") adodb.open strconnect SQL = "SELECT b_name,b_title,b_ ,b_url,b_content from MyBoard " SQL = SQL & " where board_idx=" & board_idx & " and b_pwd='" & pwd & "

86 Edit.asp(2) Set Rs = adodb.execute(sql) Dim name, title, mail, url, content if Rs.BOF and Rs.EOF then ' 만일, 조건에해당레코드가없다면 ( 비밀번호가맞지않는다면 ) Response.Write "<script language=javascript>" Response.Write " alert(' 비밀번호가일치하지않습니다 ');" Response.Write " history.back();" Response.Write "</script>" Response.End else ' 비밀번호가일치핚다면... name = Rs("b_name") title = Rs("b_title") mail = Rs("b_ )

87 Edit.asp(3) end if url = Rs("b_url") content = Rs("b_content") %> Rs.Close adodb.close Set Rs = Nothing Set adodb = nothing <html> <head> <meta http-equiv="content-type" content="text/html; charset=ks_c_ "> <title></title> <style type="text/css >

88 Edit.asp(4) A{text-decoration: none; color:navy } A:hover{text-decoration: underline; color:orange} td { font-family: 돋움 ; font-size:12 } input,textarea {font-family: 돋움 ;border: 1 solid white;border-bottom: 1 solid silver} </style> </head> <script language="javascript"> <!-- function sendit(){ // 제목 if (document.myform.title.value == "") { } alert(" 제목을입력해주십시오."); return;

89 Edit.asp(5) // 이름 if (document.myform.name.value == "") { alert(" 이름을입력해주십시오."); return; } // 글내용 if (document.myform.memo.value == "" ) { alert(" 글을작성안하셨습니다. 글을작성해주십시요 "); return; } document.myform.submit(); } function focus_it(){ document.all.title.focus();

90 Edit.asp(6) } //--> </script> <body bgcolor="#ffffff" onload="javascript:focus_it();"> <form method="post" action="edit_result.asp" name="myform"> <input type="hidden" name= "board_idx"value="<%=board_idx%>"> <input type="hidden" name= "Gotopage"value="<%=Gotopage%>"> <table border="0" cellspacing="0" width="520" cellpadding="0"> <tr height="50"> <td align="right" width="170" > <input type="button" value=" 수정완료 " name="edit" OnClick="sendit()" style="background-color:khaki"></td> <td width="350" align="left" style="padding-left:70 >

91 Edit.asp(7) <font color="blue"> 글을수정합니다...</font> </tr> </td> <tr height="30" > <td width="170" align="right" > 제목 </td> <td width="350" align="left" style="padding-left: 20; padding-right: 30"> </tr> <tr> <input type="text" name="title" size= "50"value="<%=title%>"></td> <td align="right" > 이름 </td> <td align="left" style="padding-left: 20; padding-right: 30"> <input type="text" name="name" size= "50"value="<%=name%>"></td> </tr>

92 Edit.asp(8) <tr> <td align="right" > 메일 </td> <td align="left" style="padding-left: 20; padding-right: 30"> <input type="text" name="mail" size= "50"value="<%=mail%>"></td> </tr> <tr> </tr> <tr> <td align="right" > 사이트 </td> <td align="left" style="padding-left: 20; padding-right: 30"> <input type="text" name="url" size= "50"value="<%=url%>"></td> <td align="right" > 글 </td> <td align="left" style="padding-left: 20; padding-top: 5; paddingbottom: 5 >

93 Edit.asp(9) <textarea wrap="hard" rows="10" name= "memo"cols="50"><%=content%></textarea></td> </tr> <tr height="25"> <td align="right" colspan="2" style="padding-right:25"> <input type="button" value=" 수정완료 " name="edit" OnClick="sendit()" </tr> </table> </form> </body> </html> </td> style="background-color:khaki">

94 Edit_Result.asp(1) <!--METADATA TYPE= "typelib" NAME= "ADODB Type Library" FILE="C:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" --> <% Option Explicit %> <!--#include file="config.asp"--> <% Dim name, mail, title, url, memo, board_idx, Gotopage Gotopage = Request.Form("Gotopage") board_idx = Request.Form("board_idx") name = Request.form("name") mail = Request.form("mail") title = Request.form("title") url = Request.form("url") memo = Request.form("memo )

95 Edit_Result.asp(2) Dim adors, strsql Set adors = Server.CreateObject("ADODB.RecordSet") strsql = "Select * from MyBoard where board_idx=" & board_idx adors.open strsql, strconnect, adopenstatic, adlockpessimistic, adcmdtext with adors.fields("b_name") = name.fields("b_ ") = mail.fields("b_title") = title.fields("b_url") = url.fields("b_ipaddr") = Request.ServerVariables("REMOTE_ADDR").Fields("b_content") = memo

96 Edit_Result.asp(3).Update.Close end with Set adors = nothing %> Response.redirect "list.asp?gotopage=" & Gotopage

97 Del_Ok.asp(1) <!--METADATA TYPE= "typelib" NAME= "ADODB Type Library" FILE="C:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" --> <% Option Explicit %> <!--#include file="config.asp"--> <% Dim Gotopage, board_idx, pwd Gotopage = Request.Form("Gotopage") board_idx = Request.Form("board_idx") pwd = Request.Form("pwd") Dim adors, strsql Set adors = Server.CreateObject("ADODB.RecordSet") strsql = "SELECT board_idx from MyBoard

98 Del_Ok.asp(2) strsql = strsql & " where board_idx=" & board_idx & " and b_pwd='" & pwd & "'" adors.open strsql, strconnect, adopenstatic, adlockpessimistic, adcmdtext if adors.bof and adors.eof then ' 만일, 조건에해당레코드가없다면 ( 비밀번호가안맞는다면 ) Response.Write "<script language=javascript>" Response.Write " alert(' 비밀번호가일치하지않습니다 ');" Response.Write " history.back();" Response.Write "</script>" Response.End

99 Del_Ok.asp(3) else ' 비밀번호가일치핚다면... adors.delete adors.close Set adors = nothing end if %> Response.redirect "list.asp?gotopage=" & Gotopage

PHP & ASP

PHP & ASP 단어장프로젝트 프로젝트2 단어장 select * from address where address like '% 경기도 %' td,li,input{font-size:9pt}

More information

DBMS & SQL Server Installation Database Laboratory

DBMS & SQL Server Installation Database Laboratory DBMS & 조교 _ 최윤영 } 데이터베이스연구실 (1314 호 ) } 문의사항은 cyy@hallym.ac.kr } 과제제출은 dbcyy1@gmail.com } 수업공지사항및자료는모두홈페이지에서확인 } dblab.hallym.ac.kr } 홈페이지 ID: 학번 } 홈페이지 PW:s123 2 차례 } } 설치전점검사항 } 설치단계별설명 3 Hallym Univ.

More information

하둡을이용한파일분산시스템 보안관리체제구현

하둡을이용한파일분산시스템 보안관리체제구현 하둡을이용한파일분산시스템 보안관리체제구현 목 차 - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - 1. 사용자가웹서버에로그인하여다양한서비스 ( 파일업 / 다운로드, 폴더생성 / 삭제 ) 를활용 2. 웹서버와연동된하둡서버에서업 / 다운로드된파일을분산저장. ( 자료송수신은 SSH 활용 ) - 9 - - 10 - - 11 -

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 실습문제 Chapter 05 데이터베이스시스템... 오라클로배우는데이터베이스개론과실습 1. 실습문제 1 (5 장심화문제 : 각 3 점 ) 6. [ 마당서점데이터베이스 ] 다음프로그램을 PL/SQL 저장프로시져로작성하고실행해 보시오. (1) ~ (2) 7. [ 마당서점데이터베이스 ] 다음프로그램을 PL/SQL 저장프로시져로작성하고실행해 보시오. (1) ~ (5)

More information

쉽게 풀어쓴 C 프로그래밍

쉽게 풀어쓴 C 프로그래밍 CHAPTER 7. HTML 와 CSS 로웹사이트만들 기 웹사이트작성 웹사이트구축과정 내비게이션구조도 홈페이지레이아웃 헤더 web Shop 내비게이션메뉴

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 MySQL - 명령어 1. 데이터베이스관련명령 2. 데이터베이스테이블관련명령 3. SQL 명령의일괄실행 4. 레코드관련명령 5. 데이터베이스백업및복원명령 1. 데이터베이스관련명령 데이터베이스접속명령 데이터베이스접속명령 mysql -u계정 -p비밀번호데이터베이스명 C: > mysql -ukdhong p1234 kdhong_db 데이터베이스생성명령 데이터베이스생성명령

More information

10.ppt

10.ppt : SQL. SQL Plus. JDBC. SQL >> SQL create table : CREATE TABLE ( ( ), ( ),.. ) SQL >> SQL create table : id username dept birth email id username dept birth email CREATE TABLE member ( id NUMBER NOT NULL

More information

SK Telecom Platform NATE

SK Telecom Platform NATE SK Telecom Platform NATE SK TELECOM NATE Browser VER 2.6 This Document is copyrighted by SK Telecom and may not be reproduced without permission SK Building, SeRinDong-99, JoongRoGu, 110-110, Seoul, Korea

More information

PowerPoint Template

PowerPoint Template JavaScript 회원정보 입력양식만들기 HTML & JavaScript Contents 1. Form 객체 2. 일반적인입력양식 3. 선택입력양식 4. 회원정보입력양식만들기 2 Form 객체 Form 객체 입력양식의틀이되는 태그에접근할수있도록지원 Document 객체의하위에위치 속성들은모두 태그의속성들의정보에관련된것

More information

Microsoft PowerPoint - 10Àå.ppt

Microsoft PowerPoint - 10Àå.ppt 10 장. DB 서버구축및운영 DBMS 의개념과용어를익힌다. 간단한 SQL 문법을학습한다. MySQL 서버를설치 / 운영한다. 관련용어 데이터 : 자료 테이블 : 데이터를표형식으로표현 레코드 : 테이블의행 필드또는컬럼 : 테이블의열 필드명 : 각필드의이름 데이터타입 : 각필드에입력할값의형식 학번이름주소연락처 관련용어 DB : 테이블의집합 DBMS : DB 들을관리하는소프트웨어

More information

PHP & ASP

PHP & ASP PHP 의시작과끝 echo ; Echo 구문 HTML과 PHP의 echo 비교 HTML과 PHP의 echo를비교해볼까요

More information

<C1A62038B0AD20B0ADC0C7B3EBC6AE2E687770>

<C1A62038B0AD20B0ADC0C7B3EBC6AE2E687770> 제 8강 SQL: 관계데이터베이스언어 강의목표 관계데이타베이스언어로서상용 DBMS에서가장널리사용되는 SQL의동작원리에관하여학습하고, 이를이용하여다양한질의문을작성하는방법을습득한다 기대효과 SQL의데이터정의기능을이해한다 SQL의데이터조작기능중질의기능을이해한다 SQL의데이터조작기능중데이터갱신기능을이해한다 SQL의데이터조작기능중뷰및인덱스관련기능을이해한다 SQL 의개요

More information

MySQL-.. 1

MySQL-.. 1 MySQL- 기초 1 Jinseog Kim Dongguk University jinseog.kim@gmail.com 2017-08-25 Jinseog Kim Dongguk University jinseog.kim@gmail.com MySQL-기초 1 2017-08-25 1 / 18 SQL의 기초 SQL은 아래의 용도로 구성됨 데이터정의 언어(Data definition

More information

5장 SQL 언어 Part II

5장 SQL 언어 Part II 5 장 SQL 언어 Part II 박창이 서울시립대학교통계학과 박창이 ( 서울시립대학교통계학과 ) 5 장 SQL 언어 Part II 1 / 26 데이터조작문 데이터검색 : SELECT 문데이터추가 : INSERT 문데이터수정 : UPDATE 문데이터삭제 : DELETE 문 박창이 ( 서울시립대학교통계학과 ) 5 장 SQL 언어 Part II 2 / 26 SELECT

More information

문서 템플릿

문서 템플릿 HDSI 툴분석 [sql injection 기술명세서 ] Sql injection 기술명세서 Ver. 0.01 이문서는 sql injection 기술명세가범위입니다. Copyrights Copyright 2009 by CanvasTeam@SpeeDroot( 장경칩 ) All Rights Reserved. 장경칩의사전승인없이본내용의전부또는일부에대한복사, 전재,

More information

쉽게 풀어쓴 C 프로그래밊

쉽게 풀어쓴 C 프로그래밊 Power Java 제 27 장데이터베이스 프로그래밍 이번장에서학습할내용 자바와데이터베이스 데이터베이스의기초 SQL JDBC 를이용한프로그래밍 변경가능한결과집합 자바를통하여데이터베이스를사용하는방법을학습합니다. 자바와데이터베이스 JDBC(Java Database Connectivity) 는자바 API 의하나로서데이터베이스에연결하여서데이터베이스안의데이터에대하여검색하고데이터를변경할수있게한다.

More information

구축환경 OS : Windows 7 그외 OS 의경우교재 p26-40 참조 Windows 의다른버전은조금다르게나타날수있음 Browser : Google Chrome 다른브라우저를사용해도별차이없으나추후수업의모든과정은크롬사용 한

구축환경 OS : Windows 7 그외 OS 의경우교재 p26-40 참조 Windows 의다른버전은조금다르게나타날수있음 Browser : Google Chrome 다른브라우저를사용해도별차이없으나추후수업의모든과정은크롬사용   한 수업환경구축 웹데이터베이스구축및실습 구축환경 OS : Windows 7 그외 OS 의경우교재 p26-40 참조 Windows 의다른버전은조금다르게나타날수있음 Browser : Google Chrome 다른브라우저를사용해도별차이없으나추후수업의모든과정은크롬사용 http://chrome.google.com 한림대학교웹데이터베이스 - 이윤환 APM 설치 : AUTOSET6

More information

Javascript

Javascript 1. HTML 이란? HTML 은 Hyper Text Mark Up Language 의약자로예약되어있는각종태그라는명령어를이용하여웹페이지를작성할때사용하는언어입니다. 2. HTML 의기본구조 < 태그 > 내용 < 태그속성 = 변수 > 내용

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 PHP 와 MySQL 의연동 Jo, Heeseung Content MySQL을지원하는 PHP API 함수 과변수값전달 DB 테이블생성과데이터읽기성적관리프로그램제작 2 1.2 DB 테이블생성과레코드삽입 데이터베이스테이블구조설계 [ 표 7-1] 명함관리데이터베이스테이블 ( 테이블명 : biz_card) 필드명 타입 추가사항 설명 num int primary

More information

Microsoft PowerPoint Python-WebDB

Microsoft PowerPoint Python-WebDB 8. 웹과데이터베이스연결응용 순천향대학교컴퓨터공학과이상정 순천향대학교컴퓨터공학과 1 학습내용 파이썬과데이터베이스연결 웹과데이터베이스연결 로그인페이지예 순천향서핑대회예 순천향대학교컴퓨터공학과 2 파이썬과 SQLite3 연결 sqlite3 모듈을사용하여파이썬과 SQLite3 데이테베이스연동프로그램작성 데이터베이스연결을오픈, 종료및내보내기 sqlite3.connect(filename)

More information

[ 네이버마일리지 ] 디자인셋팅매뉴얼 1. 장바구니페이지에네이버마일리지안내추가 - 위치 : HTML 디자인설정 > 장바구니 > 장바구니주문목록 {{$c_3}} [ 편집 ] 버튼클릭 > HTML 편집탭으로이동 > 여러개의장바구니모두결제버튼 {u9} [ 편집 ] 버튼클릭하

[ 네이버마일리지 ] 디자인셋팅매뉴얼 1. 장바구니페이지에네이버마일리지안내추가 - 위치 : HTML 디자인설정 > 장바구니 > 장바구니주문목록 {{$c_3}} [ 편집 ] 버튼클릭 > HTML 편집탭으로이동 > 여러개의장바구니모두결제버튼 {u9} [ 편집 ] 버튼클릭하 [ 네이버마일리지 ] 디자인셋팅매뉴얼 1. 장바구니페이지에네이버마일리지안내추가 - 위치 : HTML 디자인설정 > 장바구니 > 장바구니주문목록 {{$c_3}} [ 편집 ] 버튼클릭 > HTML 편집탭으로이동 > 여러개의장바구니모두결제버튼 {u9} [ 편집 ] 버튼클릭하여팝업에서코드수정 1) 장바구니페이지디자인수정위치 디자인관리 > HTML 디자인설정 > 장바구니이동

More information

PowerPoint Presentation

PowerPoint Presentation 6 장 SQL (section 4-6) 목차 SECTION 01 SQL 의개요 1-1 SQL의역사 1-2 SQL의유형별종류 SECTION 02 데이터정의어 (DDL) 2-1 스키마 2-2 테이블생성 (CREATE TABLE) 2-3 테이블변경 (ALTER TABLE) 2-4 테이블제거 (DROP TABLE) 2-5 제약조건 SECTION 03 데이터조작어 (DML)

More information

PART 1 CHAPTER 1 Chapter 1 Note 4 Part 1 5 Chapter 1 AcctNum = Table ("Customer").Cells("AccountNumber") AcctNum = Customer.AccountNumber Note 6 RecordSet RecordSet Part 1 Note 7 Chapter 1 01:

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 HTML5 웹프로그래밍입문 부록. 웹서버구축하기 1 목차 A.1 웹서버시스템 A.2 PHP 사용하기 A.3 데이터베이스연결하기 2 A.1 웹서버시스템 3 웹서버의구축 웹서버컴퓨터구축 웹서버소프트웨어설치및실행 아파치 (Apache) 웹서버가대표적 서버실행프로그램 HTML5 폼을전달받아처리 PHP, JSP, Python 등 데이터베이스시스템 서버측에데이터를저장및효율적관리

More information

강의 개요

강의 개요 DDL TABLE 을만들자 웹데이터베이스 TABLE 자료가저장되는공간 문자자료의경우 DB 생성시지정한 Character Set 대로저장 Table 생성시 Table 의구조를결정짓는열속성지정 열 (Clumn, Attribute) 은이름과자료형을갖는다. 자료형 : http://dev.mysql.cm/dc/refman/5.1/en/data-types.html TABLE

More information

Ext JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF

Ext JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF CHAPTER 2 (interaction) Ext JS., HTML, onready, MessageBox get.. Ext JS HTML CSS Ext JS.1. Ext JS. Ext.Msg: : Ext Ext.get: DOM 22 CHAPTER 2 (config). Ext JS.... var test = new TestFunction( 'three', 'fixed',

More information

InsertColumnNonNullableError(#colName) 에해당하는메시지출력 존재하지않는컬럼에값을삽입하려고할경우, InsertColumnExistenceError(#colName) 에해당하는메시지출력 실행결과가 primary key 제약에위배된다면, Ins

InsertColumnNonNullableError(#colName) 에해당하는메시지출력 존재하지않는컬럼에값을삽입하려고할경우, InsertColumnExistenceError(#colName) 에해당하는메시지출력 실행결과가 primary key 제약에위배된다면, Ins Project 1-3: Implementing DML Due: 2015/11/11 (Wed), 11:59 PM 이번프로젝트의목표는프로젝트 1-1 및프로젝트 1-2에서구현한프로그램에기능을추가하여간단한 DML을처리할수있도록하는것이다. 구현한프로그램은 3개의 DML 구문 (insert, delete, select) 을처리할수있어야한다. 테이블데이터는파일에저장되어프로그램이종료되어도사라지지않아야한다.

More information

Cookie Spoofing.hwp

Cookie Spoofing.hwp Cookie Spoofing&Sniffing By Maxoverpro[max]( 장상근) maxoverpro@empal.com http://www.maxoverpro.org 1. 서론 이문서는 Cookie Spoofing 과 Sniffing 에대해정석적인방법을이야기하도록하며또 한어느특정곳의취약점을설명하지않고직접제작한예제를가지고 Cookie Spoofing 과

More information

슬라이드 제목 없음

슬라이드 제목 없음 4.2 SQL 개요 SQL 개요 SQL은현재 DBMS 시장에서관계 DBMS가압도적인우위를차지하는데중요한요인의하나 SQL은 IBM 연구소에서 1974년에 System R이라는관계 DBMS 시제품을연구할때관계대수와관계해석을기반으로, 집단함수, 그룹화, 갱신연산등을추가하여개발된언어 1986년에 ANSI( 미국표준기구 ) 에서 SQL 표준을채택함으로써 SQL이널리사용되는데기여

More information

Microsoft PowerPoint - GUI _DB연동.ppt [호환 모드]

Microsoft PowerPoint - GUI _DB연동.ppt [호환 모드] GUI 설계 6 주차 DB 연동김문정 tops@yd.ac.kr 강의순서강의전환경 JDK 설치및환경설정톰캣설치및환경설정이클립스 (JEE) 설치및환경설정 MySQL( 드라이버 ) 설치및커넥터드라이브연결 DB 생성 - 계정생성이클립스에서 DB에연결서버생성 - 프로젝트생성 DB연결테이블생성및등록 2 MySQL 설치확인 mysql - u root -p MySQL 에데이터베이스추가

More information

이장에서다룰내용 테두리를제어하는스타일시트 외부여백 (Margin) 과내부여백 (Padding) 관련속성 위치관련속성 2

이장에서다룰내용 테두리를제어하는스타일시트 외부여백 (Margin) 과내부여백 (Padding) 관련속성 위치관련속성 2 03 장. 테두리여백지정하는속성 이번장에서는테이블, 레이어, 폼양식등의더예쁘게꾸미기위해서 CSS 를이용하여 HTML 요소의테두리속성을바꾸어보자. 이장에서다룰내용 1 2 3 테두리를제어하는스타일시트 외부여백 (Margin) 과내부여백 (Padding) 관련속성 위치관련속성 2 01. 테두리를제어하는스타일시트 속성값설명 border-width border-left-width

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 휴대폰인증서비스 사용자매뉴얼 목차 1. 서비스소개및신청 1) 휴대폰인증서비스란? 2) 휴대폰인증서비스장점 3) 서비스신청하기 1) 회원가입페이지에적용 2) 아이디, 비밀번호찾기페이지에적용 3) 14세미만비회원구매제한팝업에적용 4) 성인인증페이지에적용 2 1. 서비스소개및신청 1) 휴대폰인증서비스란? 휴대폰인증서비스는본인명의의휴대폰을사용하여본인확인을가능하게해주는서비스로써,

More information

목차 BUG 문법에맞지않는질의문수행시, 에러메시지에질의문의일부만보여주는문제를수정합니다... 3 BUG ROUND, TRUNC 함수에서 DATE 포맷 IW 를추가지원합니다... 5 BUG ROLLUP/CUBE 절을포함하는질의는 SUBQUE

목차 BUG 문법에맞지않는질의문수행시, 에러메시지에질의문의일부만보여주는문제를수정합니다... 3 BUG ROUND, TRUNC 함수에서 DATE 포맷 IW 를추가지원합니다... 5 BUG ROLLUP/CUBE 절을포함하는질의는 SUBQUE ALTIBASE HDB 6.3.1.10.1 Patch Notes 목차 BUG-45710 문법에맞지않는질의문수행시, 에러메시지에질의문의일부만보여주는문제를수정합니다... 3 BUG-45730 ROUND, TRUNC 함수에서 DATE 포맷 IW 를추가지원합니다... 5 BUG-45760 ROLLUP/CUBE 절을포함하는질의는 SUBQUERY REMOVAL 변환을수행하지않도록수정합니다....

More information

Microsoft PowerPoint Python-DB

Microsoft PowerPoint Python-DB 순천향대학교컴퓨터공학과이상정 순천향대학교컴퓨터공학과 1 학습내용 데이터베이스 SQLite 데이터베이스 파이썬과데이터베이스연결 순천향대학교컴퓨터공학과 2 데이터베이스 (Database) 소개 데이터베이스 DBMS (DataBase Management System) 이라고도함 대용량의데이터를매우효율적으로처리하고저장하는기술 SQLite, 오라클, MySQL 등이있음

More information

6장. SQL

6장. SQL 학습목표 SQL이 무엇인지 개념을 설명 테이블을 생성, 변경, 제거할 할 수 있다. 수 있다. 데이터를 검색, 갱신, 삽입, 삭 제할 수 있다. 뷰, 시스템 카탈로그, 저장 프 로시저, 트리거에 대한 개념 을 설명할 수 있다. 2 목차 SECTION 01 SQL의 개요 11 SQL의 역사 12 SQL의 유형별 종류 SECTION 0 21 스키마 22 테이블

More information

@OneToOne(cascade = = "addr_id") private Addr addr; public Emp(String ename, Addr addr) { this.ename = ename; this.a

@OneToOne(cascade = = addr_id) private Addr addr; public Emp(String ename, Addr addr) { this.ename = ename; this.a 1 대 1 단방향, 주테이블에외래키실습 http://ojcedu.com, http://ojc.asia STS -> Spring Stater Project name : onetoone-1 SQL : JPA, MySQL 선택 http://ojc.asia/bbs/board.php?bo_table=lecspring&wr_id=524 ( 마리아 DB 설치는위 URL

More information

HTML5

HTML5 주사위게임 류관희 충북대학교 주사위게임규칙 플레이어 두개의주사위를던졌을때두주사위윗면숫자의합 The First Throw( 두주사위의합 ) 합 : 7 혹은 11 => Win 합 : 2, 3, 혹은 12 => Lost 합 : 4, 5, 6, 8, 9, 10 => rethrow The Second Throw 합 : 첫번째던진주사위합과같은면 => Win 합 : 그렇지않으면

More information

Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일

Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일 Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 Introduce Me!!! Job Jeju National University Student Ubuntu Korean Jeju Community Owner E-Mail: ned3y2k@hanmail.net Blog: http://ned3y2k.wo.tc Facebook: http://www.facebook.com/gyeongdae

More information

Microsoft PowerPoint 세션.ppt

Microsoft PowerPoint 세션.ppt 웹프로그래밍 () 2006 년봄학기 문양세강원대학교컴퓨터과학과 세션변수 (Session Variable) (1/2) 쇼핑몰장바구니 장바구니에서는사용자가페이지를이동하더라도장바구니의구매물품리스트의내용을유지하고있어야함 PHP 에서사용하는일반적인변수는스크립트의수행이끝나면모두없어지기때문에페이지이동시변수의값을유지할수없음 이러한문제점을해결하기위해서 PHP 에서는세션 (session)

More information

WINDOW FUNCTION 의이해와활용방법 엑셈컨설팅본부 / DB 컨설팅팀정동기 개요 Window Function 이란행과행간의관계를쉽게정의할수있도록만든함수이다. 윈도우함수를활용하면복잡한 SQL 들을하나의 SQL 문장으로변경할수있으며반복적으로 ACCESS 하는비효율역

WINDOW FUNCTION 의이해와활용방법 엑셈컨설팅본부 / DB 컨설팅팀정동기 개요 Window Function 이란행과행간의관계를쉽게정의할수있도록만든함수이다. 윈도우함수를활용하면복잡한 SQL 들을하나의 SQL 문장으로변경할수있으며반복적으로 ACCESS 하는비효율역 WINDOW FUNCTION 의이해와활용방법 엑셈컨설팅본부 / DB 컨설팅팀정동기 개요 Window Function 이란행과행간의관계를쉽게정의할수있도록만든함수이다. 윈도우함수를활용하면복잡한 SQL 들을하나의 SQL 문장으로변경할수있으며반복적으로 ACCESS 하는비효율역시쉽게해결할수있다. 이번화이트페이퍼에서는 Window Function 중순위 RANK, ROW_NUMBER,

More information

Lab1

Lab1 Lab 1: HTML CSS 2015 Fall human-computer interaction + design lab. Joonhwan Lee HTML Web Server (World Wide Web: WWW)? (., FTP ). web 3 웹 구조의 이해 웹페이지 웹페이지는 HTML 이라는 언어로 만들어진 일종의 프로그램 웹페이지는 텍스트, 이미지, 동영상,

More information

Javascript.pages

Javascript.pages JQuery jquery part1 JavaScript : e-mail:leseraphina@naver.com http://www.webhard.co.kr I.? 2 ......,,. : : html5 ; ; .

More information

윈도우시스템프로그래밍

윈도우시스템프로그래밍 데이터베이스및설계 MySQL 을위한 MFC 를사용한 ODBC 프로그래밍 2012.05.10. 오병우 컴퓨터공학과금오공과대학교 http://www.apmsetup.com 또는 http://www.mysql.com APM Setup 설치발표자료참조 Department of Computer Engineering 2 DB 에속한테이블보기 show tables; 에러발생

More information

ALTIBASE HDB Patch Notes

ALTIBASE HDB Patch Notes ALTIBASE HDB 6.5.1.5.6 Patch Notes 목차 BUG-45643 암호화컬럼의경우, 이중화환경에서 DDL 수행시 Replication HandShake 가실패하는문제가있어수정하였습니다... 4 BUG-45652 이중화에서 Active Server 와 Standby Server 의 List Partition 테이블의범위조건이다른경우에 Handshake

More information

강의 개요

강의 개요 정규화와 SELECT (II) 웹데이터베이스 학과 학생 과목 학과 지도교수 학과학번성명 수강과목 담당교수 A 김수정 A 0001 고길동 성질이론 김수정 B 허영만 A 0002 둘리 한식의멋 허영만 C 강풀 B 0003 희동이 심리학의이해 강풀 과목 _ 성적 학번 수강과목 성적 0001 성질이론 A 0001 한식의멋 C 0002 성질이론 A 0002 한식의멋

More information

TITLE

TITLE CSED421 Database Systems Lab MySQL Basic Syntax SQL DML & DDL Data Manipulation Language SELECT UPDATE DELETE INSERT INTO Data Definition Language CREATE DATABASE ALTER DATABASE CREATE TABLE ALTER TABLE

More information

슬라이드 1

슬라이드 1 BUSINESS DATA What DATA Disconnection SCOPE CONTEXTUAL Planner ENTERPRISE MODEL CONCEPTUAL List of Things Important to the Business ENTITY = Class of Business Thing e.g. Semantic Model Owner SYSTEM MODEL

More information

Microsoft PowerPoint MySQL 연동.ppt

Microsoft PowerPoint MySQL 연동.ppt 고급웹프로그래밍 () Lectures 21 & 22: 2005 년중등 1급정교사연수 문양세컴퓨터과학과강원대학교자연과학대학 데이터베이스? (1/4) 데이터베이스 (database), DBMS 처리 / 관리하고자하는정보혹은데이터를모아놓은저장소 저장된정보에의미를부여하고, 다양한연산 ( 검색, 갱신등 ) 을제공하는소프트웨어시스템 사용자에의해지시되는일련의연산 (transaction)

More information

Discrete Mathematics

Discrete Mathematics 웹프로그래밍 () 2005 년봄학기 문양세컴퓨터과학과강원대학교자연과학대학 데이터베이스? (1/4) 데이터베이스 (database), DBMS 처리 / 관리하고자하는정보혹은데이터를모아놓은저장소 저장된정보에의미를부여하고, 다양한연산 ( 검색, 갱신등 ) 을제공하는소프트웨어시스템 사용자에의해지시되는일련의연산 (transaction) 을효과적이고정확하게처리하는소프트웨어시스템

More information

로거 자료실

로거 자료실 redirection 매뉴얼 ( 개발자용 ) V1.5 Copyright 2002-2014 BizSpring Inc. All Rights Reserved. 본문서에대한저작권은 비즈스프링 에있습니다. - 1 - 목차 01 HTTP 표준 redirect 사용... 3 1.1 HTTP 표준 redirect 예시... 3 1.2 redirect 현상이여러번일어날경우예시...

More information

<3033B0AD D4C5F584D4C5FC0CEC5CDB3DDBAB8C3E6C7D0BDC0C0DAB7E12E687770>

<3033B0AD D4C5F584D4C5FC0CEC5CDB3DDBAB8C3E6C7D0BDC0C0DAB7E12E687770> HTML/XML 인터넷보충학습자료 - 1 - - HTML 표를만들기위해서는 태그를사용한다. - - 테이블에서행과열을나눠주기위한태그는따로지정해야해며나눌개수만큼반복해서작성해야한다.

More information

Microsoft PowerPoint - ch09 - 연결형리스트, Stack, Queue와 응용 pm0100

Microsoft PowerPoint - ch09 - 연결형리스트, Stack, Queue와 응용 pm0100 2015-1 프로그래밍언어 9. 연결형리스트, Stack, Queue 2015 년 5 월 4 일 교수김영탁 영남대학교공과대학정보통신공학과 (Tel : +82-53-810-2497; Fax : +82-53-810-4742 http://antl.yu.ac.kr/; E-mail : ytkim@yu.ac.kr) 연결리스트 (Linked List) 연결리스트연산 Stack

More information

SQL

SQL 데이터베이스및 SQL 언어의기초 박창이 서울시립대학교통계학과 박창이 ( 서울시립대학교통계학과 ) 데이터베이스및 SQL 언어의기초 1 / 36 Part I 데이터베이스 박창이 ( 서울시립대학교통계학과 ) 데이터베이스및 SQL 언어의기초 2 / 36 데이터의구성및표현 개체 (entity): DB가표현하려는유형 / 무형적정보의대상속성 (attribute): 개체가갖는특성도메인

More information

Microsoft PowerPoint - ch07_데이터베이스 언어 SQL.pptx

Microsoft PowerPoint - ch07_데이터베이스 언어 SQL.pptx 05-01 SQL의소개 SQL을이용한데이터정의 SQL을이용한데이터조작 뷰 삽입 SQL 학습목표 SQL의역할을이해하고, 이를기능별로분류해본다. SQL의데이터정의기능을예제를통해익힌다. SQL의데이터조작기능을예제를통해익힌다. 뷰의개념과장점을이해한다. 삽입 SQL의역할을이해한다. 2 01 SQL 의소개 SQL (Structured Query Language) 의미

More information

Spring Boot/JDBC JdbcTemplate/CRUD 예제

Spring Boot/JDBC JdbcTemplate/CRUD 예제 Spring Boot/JDBC JdbcTemplate/CRUD 예제 오라클자바커뮤니티 (ojc.asia, ojcedu.com) Spring Boot, Gradle 과오픈소스인 MariaDB 를이용해서 EMP 테이블을만들고 JdbcTemplate, SimpleJdbcTemplate 을이용하여 CRUD 기능을구현해보자. 마리아 DB 설치는다음 URL 에서확인하자.

More information

Microsoft PowerPoint - QVIZMVUMWURI.pptx

Microsoft PowerPoint - QVIZMVUMWURI.pptx 데이타베이스시스템 2011.03 충북대학교경영정보학과조완섭 (wscho@chungbuk.ac.kr) Chap. 4 SQL 질의어 C4 2 목차 - SQL2에서데이터정의, 제약조건및스키마변경 - SQL에서의기본질의 - 더복잡한 SQL 질의들 - SQL에서삽입, 삭제, 갱신구문 - SQL 뷰 - 주장으로추가적인제약조건명시 - SQL의부가적인기능들 Ch4 3 SQL

More information

Tablespace On-Offline 테이블스페이스 온라인/오프라인

Tablespace On-Offline 테이블스페이스 온라인/오프라인 2018/11/10 12:06 1/2 Tablespace On-Offline 테이블스페이스온라인 / 오프라인 목차 Tablespace On-Offline 테이블스페이스온라인 / 오프라인... 1 일반테이블스페이스 (TABLESPACE)... 1 일반테이블스페이스생성하기... 1 테이블스페이스조회하기... 1 테이블스페이스에데이터파일 (DATA FILE) 추가

More information

다른 JSP 페이지호출 forward() 메서드 - 하나의 JSP 페이지실행이끝나고다른 JSP 페이지를호출할때사용한다. 예 ) <% RequestDispatcher dispatcher = request.getrequestdispatcher(" 실행할페이지.jsp");

다른 JSP 페이지호출 forward() 메서드 - 하나의 JSP 페이지실행이끝나고다른 JSP 페이지를호출할때사용한다. 예 ) <% RequestDispatcher dispatcher = request.getrequestdispatcher( 실행할페이지.jsp); 다른 JSP 페이지호출 forward() 메서드 - 하나의 JSP 페이지실행이끝나고다른 JSP 페이지를호출할때사용한다. 예 ) RequestDispatcher dispatcher = request.getrequestdispatcher(" 실행할페이지.jsp"); dispatcher.forward(request, response); - 위의예에서와같이 RequestDispatcher

More information

초보자를 위한 ADO 21일 완성

초보자를 위한 ADO 21일 완성 ADO 21, 21 Sams Teach Yourself ADO 2.5 in 21 Days., 21., 2 1 ADO., ADO.? ADO 21 (VB, VBA, VB ), ADO. 3 (Week). 1, 2, COM+ 3.. HTML,. 3 (week), ADO. 24 1 - ADO OLE DB SQL, UDA(Universal Data Access) ADO.,,

More information

Microsoft PowerPoint - 3장-MS SQL Server.ppt [호환 모드]

Microsoft PowerPoint - 3장-MS SQL Server.ppt [호환 모드] MS SQL Server 마이크로소프트사가윈도우운영체제를기반으로개발한관계 DBMS 모바일장치에서엔터프라이즈데이터시스템에이르는다양한플랫폼에서운영되는통합데이터관리및분석솔루션 2 MS SQL Server 개요 3.1 MS SQL Server 개요 클라이언트-서버모델을기반으로하는관계 DBMS로서윈도우계열의운영체제에서만동작함 오라클관계 DBMS보다가격이매우저렴한편이고,

More information

chap 5: Trees

chap 5: Trees 5. Threaded Binary Tree 기본개념 n 개의노드를갖는이진트리에는 2n 개의링크가존재 2n 개의링크중에 n + 1 개의링크값은 null Null 링크를다른노드에대한포인터로대체 Threads Thread 의이용 ptr left_child = NULL 일경우, ptr left_child 를 ptr 의 inorder predecessor 를가리키도록변경

More information

13주-14주proc.PDF

13주-14주proc.PDF 12 : Pro*C/C++ 1 2 Embeded SQL 3 PRO *C 31 C/C++ PRO *C NOT! NOT AND && AND OR OR EQUAL == = SQL,,, Embeded SQL SQL 32 Pro*C C SQL Pro*C C, C Pro*C, C C 321, C char : char[n] : n int, short, long : float

More information

3장

3장 C H A P T E R 03 CHAPTER 03 03-01 03-01-01 Win m1 f1 e4 e5 e6 o8 Mac m1 f1 s1.2 o8 Linux m1 f1 k3 o8 AJAX

More information

var answer = confirm(" 확인이나취소를누르세요."); // 확인창은사용자의의사를묻는데사용합니다. if(answer == true){ document.write(" 확인을눌렀습니다."); else { document.write(" 취소를눌렀습니다.");

var answer = confirm( 확인이나취소를누르세요.); // 확인창은사용자의의사를묻는데사용합니다. if(answer == true){ document.write( 확인을눌렀습니다.); else { document.write( 취소를눌렀습니다.); 자바스크립트 (JavaScript) - HTML 은사용자에게인터페이스 (interface) 를제공하는언어 - 자바스크립트는서버로데이터를전송하지않고서할수있는데이터처리를수행한다. - 자바스크립트는 HTML 나 JSP 에서작성할수있고 ( 내부스크립트 ), 별도의파일로도작성이가능하다 ( 외 부스크립트 ). - 내부스크립트 - 외부스크립트

More information

PowerPoint Presentation

PowerPoint Presentation 6 장 SQL 목차 SECTION 01 SQL 의개요 1-1 SQL의역사 1-2 SQL의유형별종류 SECTION 02 데이터정의어 (DDL) 2-1 스키마 2-2 테이블생성 (CREATE TABLE) 2-3 테이블변경 (ALTER TABLE) 2-4 테이블제거 (DROP TABLE) SECTION 03 데이터조작어 (DML) 3-1 데이터검색 (SELECT)

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 ONE page html 이란? 원페이지는최근의홈페이지제작트렌드로한페이지에상단에서하단으로의마우스스크롤링을통해서컨텐츠를보여주는스타일의홈페이지입니다. USER 의시선을분산시키지않고위쪽에서아래쪽으로마우스스크롤링을통해서홈페이지의컨텐츠를보여주게됩니다. 반응형으로제작되어스마트폰, 아이패드, 태블릿,PC, 노트북등다양한디바이스에서자동으로최적화됩니다. ONE page 웹사이트사례

More information

제이쿼리 (JQuery) 정의 자바스크립트함수를쉽게사용하기위해만든자바스크립트라이브러리. 웹페이지를즉석에서변경하는기능에특화된자바스크립트라이브러리. 사용법 $( 제이쿼리객체 ) 혹은 $( 엘리먼트 ) 참고 ) $() 이기호를제이쿼리래퍼라고한다. 즉, 제이쿼리를호출하는기호

제이쿼리 (JQuery) 정의 자바스크립트함수를쉽게사용하기위해만든자바스크립트라이브러리. 웹페이지를즉석에서변경하는기능에특화된자바스크립트라이브러리. 사용법 $( 제이쿼리객체 ) 혹은 $( 엘리먼트 ) 참고 ) $() 이기호를제이쿼리래퍼라고한다. 즉, 제이쿼리를호출하는기호 제이쿼리 () 정의 자바스크립트함수를쉽게사용하기위해만든자바스크립트라이브러리. 웹페이지를즉석에서변경하는기능에특화된자바스크립트라이브러리. 사용법 $( 제이쿼리객체 ) 혹은 $( 엘리먼트 ) 참고 ) $() 이기호를제이쿼리래퍼라고한다. 즉, 제이쿼리를호출하는기호 CSS와마찬가지로, 문서에존재하는여러엘리먼트를접근할수있다. 엘리먼트접근방법 $( 엘리먼트 ) : 일반적인접근방법

More information

C H A P T E R 2

C H A P T E R 2 C H A P T E R 2 Foundations of Ajax Chapter 2 1 32 var xmlhttp; function createxmlhttprequest() { if(window.activexobject) { xmlhttp = new ActiveXObject( Micr else if(window.xmlhttprequest) { xmlhttp =

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 바로가기마케팅서비스 사용자매뉴얼 최종업데이트 2013-08-02 문서버전 1.2 목차 1. 서비스소개및신청 1) 바로가기마케팅서비스란? 2) 서비스신청및적용 3) 서비스활용 2. 디자인설정 ( 구 ) 디자인 1) 바로가기아이콘소개페이지적용 2) 바로가기접속상태아이콘노출 3) 바로가기접속주문혜택노출 3. 디자인설정 - 스마트디자인 1) 바로가기아이콘서비스소개페이지적용

More information

최종보고서 데이터베이스의취약점분석과해결책 제출일자 : 2012년 5월 00일과목명 : 캡스톤디자인팀명 : DIS 팀장 : 강연준팀원 : 강연준 조응철담당교수 : 양환석교수님

최종보고서 데이터베이스의취약점분석과해결책 제출일자 : 2012년 5월 00일과목명 : 캡스톤디자인팀명 : DIS 팀장 : 강연준팀원 : 강연준 조응철담당교수 : 양환석교수님 최종보고서 데이터베이스의취약점분석과해결책 제출일자 : 2012년 5월 00일과목명 : 캡스톤디자인팀명 : DIS 팀장 : 강연준팀원 : 90816542 강연준 90710000 조응철담당교수 : 양환석교수님 목 차 1. 서론 1.1. 연구의필요성 1.1.1 데이터베이스보안의개념 1.1.2 데이터베이스보안의필요성 1.2. 팀구성원 1.2.1 구성원 1.3. 주간활동보고서

More information

2파트-07

2파트-07 CHAPTER 07 Ajax ( ) (Silverlight) Ajax RIA(Rich Internet Application) Firefox 4 Ajax MVC Ajax ActionResult Ajax jquery Ajax HTML (Partial View) 7 3 GetOrganized Ajax GetOrganized Ajax HTTP POST 154 CHAPTER

More information

untitled

untitled (shared) (integrated) (stored) (operational) (data) : (DBMS) :, (database) :DBMS File & Database - : - : ( : ) - : - : - :, - DB - - -DBMScatalog meta-data -DBMS -DBMS - -DBMS concurrency control E-R,

More information

PowerPoint Presentation

PowerPoint Presentation WordPress 를이용한웹사이트만들기 2015 년 한지웅 WordPress 를이용한웹사이트만들기 Day 1 Day 2 Day 3 Day 4 Day 5 1. 웹사이트제작기초 HTLM 기본 CSS 기본 WordPress 개론 ( 웹사이트구축툴 ) 2. 웹호스팅 / 웹사이트구축 웹호스팅업체선택 cpanel 설정 WordPress 설치 3. WordPress 기초활용

More information

(Microsoft PowerPoint - 9\300\345.ppt [\310\243\310\257 \270\360\265\345])

(Microsoft PowerPoint - 9\300\345.ppt [\310\243\310\257 \270\360\265\345]) 제9장폼객체 객체다루기 학습목표 폼객체에서사용하는속성, 메소드, 이벤트핸들러를이해한다. 목록상자에서사용하는속성, 메소드, 이벤트핸들러를이해한다. 목차 9.1 form 객체 9.2 입력상자, 체크상자, 라디오버튼 9.3 목록상자 2 9.1 form 객체 폼은주로서버에어떤데이터를보내고자하는경우에많이사용한다. 태그를제어하는 form 객체의기본용법은다음과같다

More information

슬라이드 제목 없음

슬라이드 제목 없음 MS SQL Server 마이크로소프트사가윈도우운영체제를기반으로개발한관계 DBMS 모바일장치에서엔터프라이즈데이터시스템에이르는다양한플랫폼에서운영되는통합데이터관리및분석솔루션 2 MS SQL Server 개요 3.1 MS SQL Server 개요 클라이언트-서버모델을기반으로하는관계 DBMS 로서윈도우계열의운영체제에서만동작함 오라클관계 DBMS 보다가격이매우저렴한편이고,

More information

Week8-Extra

Week8-Extra Week 08 Extra HTML & CSS Joonhwan Lee human-computer interaction + design lab. HTML CSS HTML, HTML 5 1. HTML HTML HTML HTML (elements) (attributes), (arguments). HTML (tag), DTD (Document Type Definition).!4

More information

빅데이터분산컴퓨팅-5-수정

빅데이터분산컴퓨팅-5-수정 Apache Hive 빅데이터분산컴퓨팅 박영택 Apache Hive 개요 Apache Hive 는 MapReduce 기반의 High-level abstraction HiveQL은 SQL-like 언어를사용 Hadoop 클러스터에서 MapReduce 잡을생성함 Facebook 에서데이터웨어하우스를위해개발되었음 현재는오픈소스인 Apache 프로젝트 Hive 유저를위한

More information

A Hierarchical Approach to Interactive Motion Editing for Human-like Figures

A Hierarchical Approach to Interactive Motion Editing for Human-like Figures 단일연결리스트 (Singly Linked List) 신찬수 연결리스트 (linked list)? tail 서울부산수원용인 null item next 구조체복습 struct name_card { char name[20]; int date; } struct name_card a; // 구조체변수 a 선언 a.name 또는 a.date // 구조체 a의멤버접근 struct

More information

EDB 분석보고서 (04.03) ~ Exploit-DB(http://exploit-db.com) 에공개된별로분류한정보입니다. ** 5개이상발생한주요소프트웨어별상세 EDB 번호 종류 공격난이도 공격위험도 이름 소프트웨어이름 3037 SQL Inj

EDB 분석보고서 (04.03) ~ Exploit-DB(http://exploit-db.com) 에공개된별로분류한정보입니다. ** 5개이상발생한주요소프트웨어별상세 EDB 번호 종류 공격난이도 공격위험도 이름 소프트웨어이름 3037 SQL Inj EDB 분석보고서 (04.03) 04.03.0~04.03.3 Exploit-DB(http://exploit-db.com) 에공개된별로분류한정보입니다. 분석내용정리 ( 작성 : 펜타시큐리티시스템보안성평가팀 ) 04년 03월에공개된 Exploit-DB의분석결과, 해커들이가장많이시도하는공격으로알려져있는 SQL Injection 공격에대한보고개수가가장많았습니다. 무엇보다주의가필요한부분은

More information

CAD 화면상에 동그란 원형 도형이 생성되었습니다. 화면상에 나타난 원형은 반지름 500인 도형입니다. 하지만 반지름이 500이라는 것은 작도자만 알고 있는 사실입니다. 반지름이 500이라는 것을 클라이언트와 작업자들에게 알려주기 위 해서는 반드시 치수가 필요하겠죠?

CAD 화면상에 동그란 원형 도형이 생성되었습니다. 화면상에 나타난 원형은 반지름 500인 도형입니다. 하지만 반지름이 500이라는 것은 작도자만 알고 있는 사실입니다. 반지름이 500이라는 것을 클라이언트와 작업자들에게 알려주기 위 해서는 반드시 치수가 필요하겠죠? 실무 인테리어를 위한 CAD 프로그램 활용 인테리어 도면 작도에 꼭 필요한 명령어 60개 Ⅷ 이번 호에서는 DIMRADIUS, DIMANGULAR, DIMTEDIT, DIMSTYLE, QLEADER, 5개의 명령어를 익히도록 하겠다. 라경모 온라인 설계 서비스 업체 '도면창고' 대 표를 지낸 바 있으며, 현재 나인슈타인 을 설립해 대표 를맡고있다. E-Mail

More information

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate ALTIBASE HDB 6.1.1.5.6 Patch Notes 목차 BUG-39240 offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG-41443 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate 한뒤, hash partition

More information

UNIST_교원 홈페이지 관리자_Manual_V1.0

UNIST_교원 홈페이지 관리자_Manual_V1.0 Manual created by metapresso V 1.0 3Fl, Dongin Bldg, 246-3 Nonhyun-dong, Kangnam-gu, Seoul, Korea, 135-889 Tel: (02)518-7770 / Fax: (02)547-7739 / Mail: contact@metabrain.com / http://www.metabrain.com

More information

USER GUIDE

USER GUIDE Solution Package Volume II DATABASE MIGRATION 2010. 1. 9. U.Tu System 1 U.Tu System SeeMAGMA SYSTEM 차 례 1. INPUT & OUTPUT DATABASE LAYOUT...2 2. IPO 중 VB DATA DEFINE 자동작성...4 3. DATABASE UNLOAD...6 4.

More information

Javascript

Javascript 1. 폼 (Form) 태그란? 일반적으로폼 (Form) 태그는입력양식을만들때사용됩니다. 입력양식이란어떤데이터를받아전송해주는양식을말합니다. 예를들면, 방명록이나게시판, 회원가입등의양식을말합니다. 이러한입력양식의처음과끝에는반드시폼태그가들어가게됩니다. 폼의입력양식에는 Text Box, Input Box, Check Box, Radio Button 등여러가지입력타입들이포함됩니다.

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 Html 은웹에서 text, images, movie 등다양한정보의요소를 담을수있는문서형식이다. 정보 (txt, imges) 전송 = 동일한어플리케이션 = 정보 (txt, imges) 정보 (txt, imges Movie, 동작 ) 정보 (txt, imges movie) 어플리케이션 웹브라우저 HTML5 는기존 HTML 에차별화된특징을가진 최신버전의웹표준언어.

More information

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D313939392D382E687770>

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D313939392D382E687770> i ii iii iv v vi 1 2 3 4 가상대학 시스템의 국내외 현황 조사 가상대학 플랫폼 개발 이상적인 가상대학시스템의 미래상 제안 5 웹-기반 가상대학 시스템 전통적인 교수 방법 시간/공간 제약을 극복한 학습동기 부여 교수의 일방적인 내용전달 교수와 학생간의 상호작용 동료 학생들 간의 상호작용 가상대학 운영 공지사항,강의록 자료실, 메모 질의응답,

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 HTML5 웹프로그래밍입문 5 장. 고급표현을위한 CSS3 활용 1 목차 5.1 박스모델설정하기 5.2 레이아웃설정하기 5.3 다양한효과설정하기 5.4 움직임설정하기 2 5.1 박스모델설정하기 5.1.1 영역설정을위한박스모델 5.1.2 박스모델유형의지정 3 영역설정을위한박스모델 배경영역 , , : 해당하는줄만큼배경 ,

More information

8 장데이터베이스 8.1 기본개념 - 데이터베이스 : 데이터를조직적으로구조화한집합 (cf. 엑셀파일 ) - 테이블 : 데이터의기록형식 (cf. 엑셀시트의첫줄 ) - 필드 : 같은종류의데이터 (cf. 엑셀시트의각칸 ) - 레코드 : 데이터내용 (cf. 엑셀시트의한줄 )

8 장데이터베이스 8.1 기본개념 - 데이터베이스 : 데이터를조직적으로구조화한집합 (cf. 엑셀파일 ) - 테이블 : 데이터의기록형식 (cf. 엑셀시트의첫줄 ) - 필드 : 같은종류의데이터 (cf. 엑셀시트의각칸 ) - 레코드 : 데이터내용 (cf. 엑셀시트의한줄 ) 8 장데이터베이스 8.1 기본개념 - 데이터베이스 : 데이터를조직적으로구조화한집합 (cf. 엑셀파일 ) - 테이블 : 데이터의기록형식 (cf. 엑셀시트의첫줄 ) - 필드 : 같은종류의데이터 (cf. 엑셀시트의각칸 ) - 레코드 : 데이터내용 (cf. 엑셀시트의한줄 ) - DDL(Data Definition Language) : show, create, drop

More information

슬라이드 1

슬라이드 1 Tadpole for DB 1. 도구개요 2. 설치및실행 4. 활용예제 1. 도구개요 도구명 소개 Tadpole for DB Tools (sites.google.com/site/tadpolefordb/) 웹기반의데이터베이스를관리하는도구 Database 스키마및데이터관리 라이선스 LGPL (Lesser General Public License) 특징 주요기능

More information

게시판 스팸 실시간 차단 시스템

게시판 스팸 실시간 차단 시스템 오픈 API 2014. 11-1 - 목 차 1. 스팸지수측정요청프로토콜 3 1.1 스팸지수측정요청프로토콜개요 3 1.2 스팸지수측정요청방법 3 2. 게시판스팸차단도구오픈 API 활용 5 2.1 PHP 5 2.1.1 차단도구오픈 API 적용방법 5 2.1.2 차단도구오픈 API 스팸지수측정요청 5 2.1.3 차단도구오픈 API 스팸지수측정결과값 5 2.2 JSP

More information

쉽게 풀어쓴 C 프로그래밍

쉽게 풀어쓴 C 프로그래밍 CHAPTER 10. DOM 과이벤트처리, 입력검 증 문서객체모델 (DOM) DOM 은 HTML 문서의계층적인구조를트리 (tree) 로표현 DOM 과 BOM HTML 문서를객체로표현한것을 DOM 웹브라우저를객체로표현한것을 BOM(Browser Object Model) HTML 요소찾기 동적인웹페이지를작성하려면원하는요소를찾아야한다. id 로찾기 태그이름으로찾기

More information

3 S Q L A n t i p a t t e r n s Trees/intro/parent.sql CREATE TABLE Comments ( comment_id SERIAL PRIMARY KEY, parent_id BIGINT UNSIGNED, comment TEXT

3 S Q L A n t i p a t t e r n s Trees/intro/parent.sql CREATE TABLE Comments ( comment_id SERIAL PRIMARY KEY, parent_id BIGINT UNSIGNED, comment TEXT 3 S Q L A n t i p a t t e r n s Trees/intro/parent.sql CREATE TABLE Comments ( comment_id SERIAL PRIMARY KEY, parent_id BIGINT UNSIGNED, comment TEXT NOT NULL, FOREIGN KEY (parent_id) REFERENCES Comments(comment_id)

More information

DocsPin_Korean.pages

DocsPin_Korean.pages Unity Localize Script Service, Page 1 Unity Localize Script Service Introduction Application Game. Unity. Google Drive Unity.. Application Game. -? ( ) -? -?.. 준비사항 Google Drive. Google Drive.,.. - Google

More information

PowerPoint Presentation

PowerPoint Presentation Computer Science Suan Lee - Computer Science - 06 데이터베이스 1 06 데이터베이스 - Computer Science - 06 데이터베이스 2 목차 1. 데이터베이스의개요 2. 데이터모델 3. 관계형데이터베이스 4. SQL 5. 모바일데이터베이스 - Computer Science - 06 데이터베이스 3 데이터베이스의개념

More information

2009년 상반기 사업계획

2009년 상반기 사업계획 웹 (WWW) 쉽게배우는데이터통신과컴퓨터네트워크 학습목표 웹서비스를위한클라이언트 - 서버구조를살펴본다. 웹서비스를지원하는 APM(Apache, PHP, MySQL) 의연동방식을이해한다. HTML 이지원하는기본태그명령어와프레임구조를이해한다. HTTP 의요청 / 응답메시지의구조와동작원리를이해한다. CGI 의원리를이해하고 FORM 태그로사용자입력을처리하는방식을알아본다.

More information

Microsoft PowerPoint - 사본 - DB06-SQL,시스템카탈로그,뷰.ppt

Microsoft PowerPoint - 사본 - DB06-SQL,시스템카탈로그,뷰.ppt . SQL(Structured Query Language) 특징 [ 출제빈도 상 ] 사용자 SQL ) 관계대수와관계해석을기초로한고급데이터언어 ) 이해하기쉬운형태 3) 대화식질의어로사용가능 4) 데이터정의, 조작, 제어기능제공 5) COBOL, C, PASCAL 등의언어에삽입 -> 내장 SQL 6) 레코드집합단위로처리 7) DBMS 에서사용되는비절차적대화형 Language

More information

슬라이드 1

슬라이드 1 17.1 데이터베이스트리거 17.2 DML 트리거 17.3 DML 트리거작성 17.4 DML 트리거관리 17.5 INSTEAD OF 트리거 17.6 NON-DML 트리거 17.1 데이터베이스트리거 데이터베이스트리거 (database trigger) 테이블에어떤조작이가해졌을때에미리지정해놓은처리를자동으로실행시키는블록 PL/SQL 블록으로작성, 오라클데이터베이스에저장

More information

Overall Process

Overall Process CSS ( ) Overall Process Overall Process (Contents : Story Board or Design Source) (Structure : extensible HyperText Markup Language) (Style : Cascade Style Sheet) (Script : Document Object Model) (Contents

More information

untitled

untitled PowerBuilder 連 Microsoft SQL Server database PB10.0 PB9.0 若 Microsoft SQL Server 料 database Profile MSS 料 (Microsoft SQL Server database interface) 行了 PB10.0 了 Sybase 不 Microsoft 料 了 SQL Server 料 PB10.0

More information

쉽게 풀어쓴 C 프로그래밍

쉽게 풀어쓴 C 프로그래밍 CHAPTER 13. HTML5 위치정보와드래그앤드롭 SVG SVG(Scalable Vector Graphics) 는 XML- 기반의벡터이미지포맷 웹에서벡터 - 기반의그래픽을정의하는데사용 1999 년부터 W3C 에의하여표준 SVG 의장점 SVG 그래픽은확대되거나크기가변경되어도품질이손상되지않는다. SVG 파일에서모든요소와속성은애니메이션이가능하다. SVG 이미지는어떤텍스트에디터로도생성하고편집할수있다.

More information