본문 바로가기
MySql

MySQL 준비된 진술 및 수레

by 베이스 공부 2020. 12. 12.
반응형


내 테이블에는 FLOAT 유형 열이 있습니다.

CREATE TABLE `markers` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`name` VARCHAR( 60 ) NOT NULL ,
`description` TEXT NOT NULL ,
`lat` FLOAT( 10, 6 ) NOT NULL ,
`lng` FLOAT( 10, 6 ) NOT NULL ,  
) ENGINE = MYISAM ;


Character   Description
i   corresponding variable has type integer
d   corresponding variable has type double
s   corresponding variable has type string
b   corresponding variable is a blob and will be sent in packets

열이 FLOAT 일 때 blob에 b 를 사용해야한다고 가정해야합니까? (문자열이 아니고 이중 값이 아니기 때문에). TEXT 유형 열에서도 동일합니까?

 

해결 방법

 

정수가 아닌 숫자에는 "d"를 사용하십시오.

 

참조 페이지 https://stackoverflow.com/questions/21402659

 

 

반응형

댓글