在oracle中插入日期的帮助 [英] help for inserting date in oracle
本文介绍了在oracle中插入日期的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,请帮助我我正在使用oracle 10g,并尝试通过使用7/7/2012或2012/7/7格式类型在表中插入日期,但出现月份无效错误....请帮助我rite format
sir, please help me that i am using oracle 10g, and trying to insert date in table by using 7/7/2012 or 2012/7/7 format type but month invalid error appear....please help me to rite format
推荐答案
要在oracle中插入日期,您需要使用to_date函数.试试这个.
for inserting date in oracle you need to use to_date function. try this one.
insert into table_name
(date_field)
values
(to_date('2003/05/03 21:02:44', 'yyyy/mm/dd hh24:mi:ss'));
拉吉
这篇关于在oracle中插入日期的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文