2011-06-14 3 views
1

구문 오류를 반환하는 간단한 업데이트/삽입 문을 작성했습니다. 무엇이 누락 되었습니까? 테이블 이름은 메모이고 필드 메모는 메모 유형이며 acaps는 double입니다.내 업데이트 및 삽입 문에 대한 SQL 구문 오류

update notes set note='why is there a syntax error' where acaps=12345 
너무 내 삽입 문에

구문 오류 :

insert into notes (acaps,note,updated,userId) values (12345,'Why is there a syntax error',#6/13/2011 5:07:35 PM#,'BRSANDE') 

답변

2

당신은 예약어 사용하려고 : List of reserved words in Access 2002 and in later versions of Access

update [notes] 
set [note] = 'why is there a syntax error' 
where [acaps] = 12345 


insert into [notes] ([acaps], [note], [updated], [userId]) 
values (12345, 'Why is there a syntax error', #6/13/2011 5:07:35 PM#, 'BRSANDE') 
+0

가 좋아 정말 그 예약 된 키워드를 연구 할 필요가을, 나를 넘어 다시. 감사! – DontFretBrett