PROGRAMMING

MySQL 명령어, 튜토리얼 본문

Database/MySQL

MySQL 명령어, 튜토리얼

Raccoon2125 2021. 1. 28. 12:40

- show databases;

: 사용 중인 데이터베이스 확인

 

- use DB_Name;

: 데이터베이스 사용 명령어

 

- show tables;

: 사용 중인 데이터베이스의 테이블 확인

 

- insert into { table } { table label } values { value1, … };

: table table label value1, ... 삽입

 

- select { table label } from { table };

: 검색

 

- select { table label } from { table } where { condition };

: 조건 검색

  (ex 1) select id, title, author from books where id=2;

   : id 2 field 검색

  (ex 2) select id, title, author from books where author like '%';

   : author '' 시작하는 field 검색 ( 유사 검색 활용 )

- show character set;

사용 가능한 character set 확인

※ character set 확인 및 변경 https://bstar36.tistory.com/307

 

MySQL character set 확인 및 변경

언제나 한글 깨짐 문제로 인한 캐릭터 셋 확인 및 변경 작업이 많다. 일단 DB에 저장된 한글이 클라이언트에서 안 보이는 경우는 클라이언트의 인코딩 값을 변경해서 조치를 할 수 있다. 그러나

bstar36.tistory.com

 

1. DB 생성 및 관리 관련 명령어 offbyone.tistory.com/54

 

MySQL 명령행 클라이언트 및 관리 명령어

GUI로 된 툴을 쓸 수 있다면 좋겠지만, 사용할 수 있는게 터미널 밖에 없는 상황도 존재 합니다. MySQL Command Line Client의 사용법을 알아 두면 편리할 때가 많습니다. 프로그램의 이름은 mysql 입니다.

offbyone.tistory.com

2. SQL tutorial https://www.w3schools.com/sql/

 

SQL Tutorial

SQL Tutorial SQL is a standard language for storing, manipulating and retrieving data in databases. Our SQL tutorial will teach you how to use SQL in: MySQL, SQL Server, MS Access, Oracle, Sybase, Informix, Postgres, and other database systems. Start learn

www.w3schools.com

 

'Database > MySQL' 카테고리의 다른 글

MySQL 세팅  (0) 2021.01.28
Comments