Oracle 中的文字与格式字符串不匹配
您好,我正在尝试在 Toad 中运行此 Oracle 查询,但收到上述错误。 我该如何修复它?
INSERT
INTO IMAGE
(
IMAGE_SEQ_NO,BLDG_ID,BU_ID,DT_TAKEN,
NEGATIVE_NO,FILENAME,FILE_TYPE,DESCRIPTION,
STORAGE_SRCE,DOC_ID,PICT_SRCE_TYPE,TAKE_BY,
INFO_SRCE,DOC_REF_NO,DOC_TYPE,SUB_DOC_TYPE,
DDW_IMAGE_DOC_STATUS,SUB_IMAGE_DOC_STTS_DT,CPVI,FY,
CY,HPD_PRIVACY_FLG,EXT_PRIVACY_FLG,SCAN_DEVICE,
ADD_BY,ADD_DT,CHG_BY,CHG_DT,
REC_STTS,REC_STTS_REASON,REC_STTS_DT
)
VALUES
(
1087986,43633,78,'30/June/2010 12:15:15 PM',
NULL,NULL,0,NULL,
0,2065041,0,0,0,
NULL,1,204,0,
'30/June/2010 12:15:15 PM','1',0,0,
NULL,NULL,NULL,'JKF',
'30/June/2010 12:15:15 PM','JKF','30/June/2010 12:15:15 PM',1,
NULL,'30/June/2010 12:15:15 PM'
);
Hello I am trying to run this oracle query in toad and I am getting the above mentioned error.
How can I fix it?
INSERT
INTO IMAGE
(
IMAGE_SEQ_NO,BLDG_ID,BU_ID,DT_TAKEN,
NEGATIVE_NO,FILENAME,FILE_TYPE,DESCRIPTION,
STORAGE_SRCE,DOC_ID,PICT_SRCE_TYPE,TAKE_BY,
INFO_SRCE,DOC_REF_NO,DOC_TYPE,SUB_DOC_TYPE,
DDW_IMAGE_DOC_STATUS,SUB_IMAGE_DOC_STTS_DT,CPVI,FY,
CY,HPD_PRIVACY_FLG,EXT_PRIVACY_FLG,SCAN_DEVICE,
ADD_BY,ADD_DT,CHG_BY,CHG_DT,
REC_STTS,REC_STTS_REASON,REC_STTS_DT
)
VALUES
(
1087986,43633,78,'30/June/2010 12:15:15 PM',
NULL,NULL,0,NULL,
0,2065041,0,0,0,
NULL,1,204,0,
'30/June/2010 12:15:15 PM','1',0,0,
NULL,NULL,NULL,'JKF',
'30/June/2010 12:15:15 PM','JKF','30/June/2010 12:15:15 PM',1,
NULL,'30/June/2010 12:15:15 PM'
);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一般来说,使用 TO_DATE 函数将日期插入 Oracle 时最好使用特定格式:请参阅 http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions183.htm
如果您想使用标准格式一切,使用 NLS_DATE_FORMAT:
In general it is a good idea to use a specific format when inserting dates into Oracle, using the TO_DATE function: See http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions183.htm
If you want to use a standard format for everything, use NLS_DATE_FORMAT:
日期格式可能与您的连接设置不匹配。
Probably the date format does not match the setting for your connection.