본문 바로가기

DB이야기/MYSQL

mysql과 오라클의 한글 저장 byte

728x90

mysql은 character 기준으로 database를 euc.KR로 지정하고 테이블을 생성하면

create table test (c1 char(50));

c1 컬럼에 한글 50글자(100bytes), 영문 100(100 bytes)글자가 입력 가능하다.

오라클에서는 bytes 기준으로 mswin949로 설정 되어 있다면

create table test(c1 char(50));

c1 컬럼에 한글 25글자(50bytes), 영문 50(50 bytes)글자가 입력 가능하다.

 

728x90