MySQL에서 사용하는 정수형 변수의 크기는 다음과 같다.

각각 몇 byte인지 생각해보면 수치를 외우지 않아도 대강 감을 잡을 수 있겠다.


Type:namespace prefix = o />
Bytes
Minimum Value
Maximum Value
 
 
(Signed/Unsigned)
(Signed/Unsigned)
1
-128
127
 
 
0
255
2
-32768
32767
 
 
0
65535
3
-8388608
8388607
 
 
0
16777215
4
-2147483648
2147483647
 
 
0
4294967295
8
-9223372036854775808
9223372036854775807
 
 
0
18446744073709551615


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

간단한 DB 계정 생성  (0) 2015.01.09
create database if not exists [Database name];
grant usage on *.* to [DB User]@localhost identified by "[DB Password];
grant all on [DB Name].* to [DB User]@localhost;
flush privileges;
 
 
EX)
create database if not exists netfu_db;
grant usage on *.* to netfu_user@localhost identified by "netfu_password";
grant all on netfu_db.* to netfu_user@localhost;
flush privileges;


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

TINYINT, SMALLINT, MEDIUMINT, INT, BIGINT  (0) 2015.01.09

+ Recent posts