ch 3) Mysql 활용

강상윤·2022년 4월 18일
0

MySQL : 데이터베이스.
-oracle 데이터베이스, SQLite도 있음.
-버전이 있다. 파이썬과 아나콘다도 32bit를 설치했던 기억이 있다.
그 버전과 맞추기 위해 8.0.20을 사용하는 듯 하다.
버전에 대한 내용은 개발 가이드에 나와있을 터. 버전 맞추는 건 어디서나 기본이다.

Workbench : MySQL을 쉽게 사용할 수 있는 개발 툴.
-command line의 사용이 불편할 때 쓰라고 제공.
-다른 데이터베이스도 이와 비슷할 듯 하다.

quary문 : select, update, delete, drop, create

  • DML(data manipulation language) : select, update, delete, insert
  • DDL(data definition language) : drop, create, alter, truncate
  • DCL(data control language) : commit, rollback, grant, revoke

colume : 세로 줄 / pk(primart key) : 중복되면 안되는 칼럼 지정
/ NN(not null) : data가 비어있으면 안 된다.

등등.. 정보처리기사 데이터베이스 공부자료 확인해볼 것.

create database bot_test1;

select * from bot_test1.class1;

select * from bot_test1.class1 where age > 10;

update bot_test1.class1 set age = 12 where number = 1;

delete from bot_test1.class1 where number = 1;

drop database bot_test1;

profile
경제적 자유를 꿈꾸다

0개의 댓글