问题描述
当从asp.net到oracle调用插入查询时,我有一个日期格式错误(ORA-01843:无效的月份).有人可以帮助我确定要转换的正确格式,然后将其插入oracle 10g(TOAD).
注意:我输入的日期格式为1999年11月22日格式.
提前谢谢.
I have an date format error(ORA-01843: not a valid month) when an insert query is called from asp.net to oracle. Could someone please help me out the correct format to be converted and insert into oracle 10g(TOAD).
NOTE:My date format that is entered is in the format 11/22/1999.
Thanks in advance.
推荐答案
SELECT * from NLS_INSTANCE_PARAMETERS;
您可以使用:
将Oracle日期格式设置为任何模式.
You can set the Oracle date format to any any pattern using :
Alter Session set NLS_Date_Format='MM/DD/YYYY'
在Oracle中设置NLS_Date_Format
后,在oracle中插入数据时在vb中使用此格式.
希望这会有所帮助.
最好.
Once you set the NLS_Date_Format
in Oracle, use this format in vb when inserting data in oracle.
Hope this helps.
All the best.
这篇关于oracle中的日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!