데이터베이스가 잘 생성되고 삽입물이 잘 작동합니다. 아래 select 문에 문제가 있습니다. 레코드를 반환하고 오류를 반환하지 않습니다. 다른 필드의 선택은 잘 작동합니다. 아무도 내가 잘못하고있는 것을 발견 할 수 있습니까? 즉 더 나은 설명의 부족, 제로 시간의 범위이기 때문에iPhone SQLite 날짜 문제
"create table if not exists data (pkey integer primary key, doc date)"
[db executeUpdate:@"insert into data (doc) values (?)" , [NSDate date]];
"select * FROM data WHERE doc between '2009-08-23' and '2009-08-23' "
을 FMDatabase를 사용하여 액세스 할 수 있지만 레코드가 없을 때마다 GUI를 사용하여 레코드를 입력하고 있습니다. 제 질문을 확인하고 제안하십시오 : http://stackoverflow.com/questions/8772601/date-entry-into-data-through-gui-for-date-which-is-readable-by-fmdatabase –