2013.03.14(2 주차 ) Chapter 2 Database(MySQL). Database 를 사용하는 이유 - 보안성.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizards Guide to PHP by David Lash.
Advertisements

Creating Tables, Setting Constraints, and Datatypes What is a constraint and why do we use it? What is a datatype? What does CHAR mean? Page 97 in Course.
1 I Esempio di constraints. 2 DROP TABLE regions; CREATE TABLE regions ( region_id NUMBER CONSTRAINT region_id_nn NOT NULL, region_name VARCHAR2(25) );
1 Materi Pendukung Pertemuan > Transaksi pendukung pada SQL Matakuliah: >/ > Tahun: > Versi: >
Day 3 - Basics of MySQL What is MySQL What is MySQL How to make basic tables How to make basic tables Simple MySQL commands. Simple MySQL commands.
MySQL-Database Teppo Räisänen Oulu University of Applied Sciences School of Business and Information Management.
Fall 2001Arthur Keller – CS 1808–1 Schedule Today Oct. 18 (TH) Schemas, Views. u Read Sections u Project Part 3 extended to Oct. 23 (T). Oct.
Winter 2002Arthur Keller – CS 1808–1 Schedule Today: Jan. 29 (T) u Modifications, Schemas, Views. u Read Sections Assignment 3 due. Jan. 31 (TH)
Murali Mani SQL DDL and Oracle utilities. Murali Mani Datatypes in SQL INT (or) INTEGER FLOAT (or) REAL DECIMAL (n, m) CHAR (n) VARCHAR (n) DATE, TIME.
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2003 Dragomir R. Radev.
Structured Query Language. Brief History Developed in early 1970 for relational data model: –Structured English Query Language (SEQUEL) –Implemented with.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
Structured Query Language SQL: An Introduction. SQL (Pronounced S.Q.L) The standard user and application program interface to a relational database is.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
SQL Constraints & Triggers May 10 th, Agenda Big picture –what are constraints & triggers? –where do they appear? –why are they important? In SQL.
MySql In Action Step by step method to create your own database.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Chapter 5 Introduction to SQL. Structured Query Language = the “programming language” for relational databases SQL is a nonprocedural language = the user.
Relational DBs and SQL Designing Your Web Database (Ch. 8) → Creating and Working with a MySQL Database (Ch. 9, 10) 1.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
5.3. Querying a Database SQL -> DDL, DML. SQL Structured Query Language – industry standard supported by all significant relational databases. First SQL.
Structured Query Language. Brief History Developed in early 1970 for relational data model: –Structured English Query Language (SEQUEL) –Implemented with.
Information Systems Today (©2006 Prentice Hall) MySQL 1CS3754 Class Note #8, Is an open-source relational database management system 2.Is fast and.
Dbwebsites 2.1 Making Database backed Websites Session 2 The SQL… Where do we put the data?
Database Programming using JSP and MySQL Byung-Hyun Ha
Chapter 4 Introduction to MySQL. MySQL “the world’s most popular open-source database application” “commonly used with PHP”
CIS 3051 PHP – Chapter 27 Building A Shopping Cart.
CSC 2720 Building Web Applications Database and SQL.
Database and mySQL Week 07 Dynamic Web TCNJ Jean Chu.
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2015, Fred McClurg, All Rights.
Data Definition After this lecture, you should be able to:
SQL Basics. 5/27/2016Chapter 32 of 19 Naming SQL commands are NOT case sensitive SQL commands are NOT case sensitive But user identifier names ARE case.
Chapter 5 MYSQL Database. Introduction to MYSQL MySQL is the world's most popular open-source database. Open source means that the source code, the programming.
Intro to SQL| MIS 2502  Spacing not relevant › BUT… no spaces in an attribute name or table name  Oracle commands keywords, table names, and attribute.
Database Fundamentals Lecture 4 Useful website for MySQL download language.com/workshops/Default.asp ?workshop=21.
MySQL and JDBC Tutorial ECT 7130 Hong Cheng. Supplement on MySQL ement/Supplement4bMySQL.pdf.
What’s a database? Data stored in a structured format that lends itself to easy manipulation and recall.
# 1# 1 Creating Tables, Setting Constraints, and Datatypes What is a constraint and why do we use it? What is a datatype? What does CHAR mean? CS 105.
Truckee River Information Gateway TRIG Training Session Sept. 13, 2006 David Waetjen Information Center for the Environment (ICE)
Visual Programing SQL Overview Section 1.
Using Flash with php Very quick introduction to Flash Homework: work on projects.
Fox MIS Spring 2011 Database Week 6 ERD and SQL Exercise.
CHAPTER 9 SQL อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
1 SQL Insert Update Delete Create table Alter table.
>> Introduction to MySQL. Introduction Structured Query Language (SQL) – Standard Database Language – Manage Data in a DBMS (Database Management System)
1 MySQL and SQL. 2 Topics  Introducing Relational Databases  Terminology  Managing Databases MySQL and SQL.
There are two types of MySQL instructions (Data Definition Language) DDL: Create database, create table, alter table,,,. (Data Manipulation Language) DML.
은행 고객 관리 DB -3 조 이영철 강민재. 은행 고객 관리 DB 테이블구조 -Customer table 고객 ID( 기본키 ), 고객이름, 고객등급 ( 트리거 )
Mysql YUN YEO JOONG. 1 Connecting to and Disconnecting from the Server 1 Connecting to and Disconnecting from the Server shell> mysql – h host -u user.
Introduction to MySQL Ullman Chapter 4. Introduction MySQL most popular open-source database application Is commonly used with PHP We will learn basics.
Working with MySQL A290/A590, Fall /07/2014.
Exam 2 Review: SQL In, Dimensional Modeling, Pivot Tables, ETL Describe data cube elements Understand facts, dimensions, granularity Create/read a Star.
Introduction to MySQL  Working with MySQL and MySQL Workbench.
ITX2000 Remote hosts and web servers Prof. Xiaohong (Sharon) Gao Room: T125 Ext: Week 3 – MySQL – Statements.
Lec-7. The IN Operator The IN operator allows you to specify multiple values in a WHERE clause. SQL IN Syntax SELECT column_name(s) FROM table_name WHERE.
Chapter 5 Introduction to SQL.
MySQL-Database Jouni Juntunen Oulu University of Applied Sciences
Ch. 3. MySQL (이 강의의 대부분 예는 tutorialspoint. com/mysql/index
Introduction to PHP and MySQL – Creating Database-Driven Websites
CS311 Database Management system
R and MySQL Database Tutorial
MySQL Explain examples
لغة قواعد البيانات STRUCTURED QUERY LANGUAGE SQL))
SQL Code for Byrnetube video
Chapter 4 Introduction to MySQL.
MySQL Database System Installation Overview SQL summary
MySQL Database System Installation Overview SQL summary
ETL Processing Mechanics of ETL.
កម្មវិធីបង្រៀន SQL Programming ជាភាសាខ្មែរ Online SQL Training Course
Presentation transcript:

(2 주차 ) Chapter 2 Database(MySQL)

Database 를 사용하는 이유 - 보안성

Database 를 사용하는 이유 - 중복성 이미 입력된 값 입니다.

Database 를 사용하는 이유 - 무결성

출석부 만들기 128 원 빈 33 서울 장동건 38 부산 이병헌 35 인천 강동원 28 대구 김수현 25 서울 고창석 45 대구

출석부 만들기 rec_keynonameageaddrphone 128 원 빈 33 서울 장동건 38 부산 이병헌 35 인천 강동원 28 대구 김수현 25 서울 고창석 45 대구

출석부 만들기 필드종류최대 길이 rec_key no name age addr phone 종류설명 int 숫자 char 문자 text 문장 date 날짜 time 시간

출석부 만들기 필드종류최대 길이 rec_keyint255 noint 255 nametext 10 ageint 3 addrtext 255 phonechar 12 종류설명 int 숫자 char 문자 text 문장 date 날짜 time 시간

APMSETUP 설치

APMSETUP 설치

APMSETUP 설치 APMSETUP7_ exe 실행

APMSETUP 설치 [ 시작 ] – [ 실행 ] – [cmd 입력 ] netstat -ano

APMSETUP 설치 PID : 1600

APMSETUP 설치 [ctrl]+[alt]+[del] : 작업관리자 실행 [ 보기 ] – 열 선택 PID 선택

APMSETUP 설치

APMSETUP 실행 APMSETUP Monitor 실행

mysql password : apmsetup 입력

mysql create database db;

APMSETUP 사용자명 : root 암호 : apmsetup

APMSETUP mysql> show databases;

mysql mysql> drop database db; mysql> show databases;

mysql mysql> create database db; mysql> use db;

mysql mysql> create table customers ( customerid int unsigned not null auto_increment primary key, name char(50) not null, address char(100) not null, city char(30) not null ); auto_increment : 자동 증가

APMSETUP

mysql mysql> drop table customers;

APMSETUP

mysql insert into customers values (NULL,'Melissa Jones','25 Oak Street','Nar Nar Goon North'), (NULL,'Julie Smith','25 Oak Street','Airport West'), (3,'Julie Smith','25 Oak Street','Airport West'), (4,'Alan Wong','1/47 Haines Avenue','Box Hill'), (5,'Michelle Arthur','357 North Road','Yarraville');

mysql mysql> select * from customers;

APMSETUP

mysql mysql> alter table customers drop customerid; mysql> select * from customers;

APMSETUP

mysql mysql> drop table customers;

Mysql 구문 Database create database [dbname]; show databases; use [dbname]; drop database [dbname]; Table create select alter drop

Tables

Table : books

Table : book_reviews

Table : customers

Table : orders