Windows 7 64 비트에서 Microsoft Access 97 데이터베이스와 함께 Coldfusion 9,0,0,251028을 사용하고 있습니다. 나는이 쿼리를 실행하면INSERT INTO 문에 다음 알 수없는 필드 이름이 포함되어 있습니다.
는 :
<cfquery name="put_in_info" datasource="#db#">
insert into news
(is_current, display, mes_dat,mes_tim,mes_sub,mes_text,scrollshow,exp_dat)
values
(1,1, #createodbcdate(now())#, #createodbctime(now())#, '#subject#', '#message#',1, #session.expdate#)
</cfquery>
을이 오류를 얻을 :
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] The INSERT INTO statement contains the following unknown field name: 'exp_dat'. Make sure you have typed the name correctly, and try the operation again. The error occurred in H:\Inetpub\pvalert.com\listserver\admin\templates\post_breaking.cfm: line 26
Called from H:\Inetpub\pvalert.com\listserver\admin\new_process.cfm: line 54
Called from H:\Inetpub\pvalert.com\listserver\admin\templates\post_breaking.cfm: line 26
Called from H:\Inetpub\pvalert.com\listserver\admin\new_process.cfm: line 54
24 : (is_current, display, mes_dat,mes_tim,mes_sub,mes_text,scrollshow,exp_dat)
25 : values
26 : (1,1, #createodbcdate(now())#, #createodbctime(now())#, '#subject#', '#message#',1, #session.expdate#)
27 : </cfquery>
28 :
VENDORERRORCODE
-1507
SQLSTATE
HYS22
SQL
insert into news (is_current, display, mes_dat,mes_tim,mes_sub,mes_text,scrollshow,exp_dat) values (1,1, {d '2011-04-11'}, {t '17:49:09'}, 'Test message - please ignore', 'This is a test message, please ignore. ',1, {ts '2011-05-15 00:00:00'})
DATASOURCE
rpv_list
Exp_dat 내가 업데이트해야 할 테이블의 만료 날짜 열입니다.
"세션"을 삭제하려고했습니다. expdate 변수에, 그리고 아무것도하지 않았다. 마찬가지로 24 행의 "exp_dat"주위의 공백을 제거합니다.
MS 액세스에서 버그가 수 있도록 나타납니다 DISPLAY, ** EXP_DAT **, ID, IS_CURRENT, MES_DAT, MES_SUB, MES_TEXT, MES_TIMT, MES_TIM, SCROLLSHOW 열이있는 것 같습니다. –