This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

Structured Query Language tutorial - 00_기초

jaeuxis(25)
Published in
#mysql
Words
31
Reading
1 min
Listen
Play
8y

Structured Query Language tutorial - 기초


해당 스터디 내용은 다음의 링크에서도 확인하실 수 있습니다.

** 데이터베이스 만들기

CREATE DATABASE ;  
CREATE DATABASE mysqltutorial;

스크린샷 2018-08-22 오후 1.25.12.png

** 데이터베이스 삭제

DROP DATABASE ;  
DROP DATABASE mysqltutorial; 

스크린샷 2018-08-22 오후 1.25.24.png

** 데이터베이스 보기

SHOW DATABASES;

스크린샷 2018-08-22 오후 1.25.34.png

** 데이터베이스 보기

USE ;  
USE mysqltutorial;

스크린샷 2018-08-22 오후 1.25.34.png

** table 만들기

CREATE TABLE (
     (?) null ,
     (?) null ,
    ...,
    PRIMARY KEY()
)

CREATE TABLE topic(
    id  INT(11) NOT NULL AUTO_INCREMENT,
    title VARCHAR(100) NOT NULL,
    description TEXT NULL,
    created DATETIME NOT NULL,
    author VARCHAR(15) NULL,
    profile VARCHAR(200) NULL,
    PRIMARY KEY(id)
);

확인해볼까엽?

SHOW TABLES;

스크린샷 2018-08-22 오후 1.29.31.png

Structured Query Language tutorial - 00_기초 | Ecency