"텍스트"유형의 열에 쓸 때 내 쿼리가 엉망입니다. MySQL 텍스트 열에 문자열을 삽입 할 수 없습니다.
Describe messages;
Field Type Null Key Default Extra
id int(11) NO PRI NULL auto_increment
title varchar(255) YES NULL
body text YES NULL
to text YES NULL
content_type varchar(255) YES NULL
is_sms tinyint(1) YES NULL
user_id int(11) YES NULL
created_at datetime YES NULL
updated_at datetime YES NULL
그럼 내가 삽입을 시도하십시오 : 이것은 일반적으로 MySQL의 구문 오류가 발생 어떤 이유로
INSERT INTO messages (id,title,body,to) VALUES ('1','Test Message','This is a test message. This is a test message. This is a test message. This is a test message.', 'an email');
다음은 예입니다. "받는 사람"열을 제거하고 해당 값을 쿼리에서 제거하면 쿼리가 올바르게 작동합니다.
아이디어가 있으십니까?