ChinaUnix.net
相关文章推荐:

oracle查询date类型

问题1: 大致情况是这样的: CREATE OR REPLACE PACKAGE BODY mytestpackage IS PROCEDURE MYPRO1( some parameters.... ) IS ...... select t_bgn_tm into tbgntm from t_table_exa where rownum=1; --调用存储过程MYPRO2() 其中tbgntm为参数,是下面哪种方式? 是这样调用 MYPRO2(to_date(tbgntm,'YYYY-MM-DD')); 还是这样调用 MYPRO2(tbgntm); 2.tbgn...

by ilex - Oracle - 2005-04-14 18:31:03 阅读(1536) 回复(2)

相关讨论

oracledate类型默认格式为dd/mon/yy 不知道如何把它修改成为其他的默认格式。(操作系统环境是unix环境)。 [quote]浆糊救济[/quote][/quote]

by jackily - Oracle - 2004-09-23 15:54:30 阅读(2097) 回复(5)

如自带的示例表中的 select last_name from employee where hire_date between '*' and '*'; 其中那两个星号应该怎么表示????? 试了N次都不成!

by leibin79 - Oracle - 2004-03-09 09:26:50 阅读(1533) 回复(3)

oracledate字段类型支持年月日时分秒,但是mysql中date只支持年月日,datetime倒是支持,但是不支持oracle中只有年月日的数据导入到datetime类型中... 请问该问题如何解决???? 我需要根据从oracle中得到的建表语句,自动的在mysql中批量建表....

by cyckax - MySQL - 2013-04-12 17:19:21 阅读(1150) 回复(0)

PreparedStatement pstm=null; Calendar c=new GregorianCalendar(2006,10,1,10,10,10); java.util.date d = c.getTime(); java.sql.date date2 = new java.sql.date(d.getTime()); pstm=conn.prepareStatement("insert into time values(?)"); pstm.setdate(1,date2); pstm.executeUpdate(); //以上是向oracle插入一些date类型的几行代码.但是,有一个问题,就是只能插入年月日,但是小时,分钟,秒,就没办法插进去. //改用Timesta...

by yeshenghai - Java - 2006-08-01 01:30:28 阅读(5383) 回复(5)

java如何存取oracle数据库中的date类型值?java中有何具本的函数去存取这些值,如果,我想存取月份和日和几小时,几分钟,怎么通过java编程去实现?

by yeshenghai - Java - 2006-07-19 19:06:16 阅读(4210) 回复(5)

请教date类型查询,使用to_char查询的是0000-0-0 我用程序将日期按7字节char入库, 但是查询时有以下问题, 使用select *没有问题, 但是使用select to_char就有问题不知道为什么,查询结果如下: SQL> select * from test_tab; dateTIME --------- 12-JUN-92 12-JUN-15 12-JUN-85 12-JUN-08 12-JUN-08 12-JUN-08 12-JUN-08 12-JUN-08 8 rows selected. SQL> select to_char(dateTIME, 'YYYY-MM-DD') from test_tab; TO_CHAR(DA ...

by canyon - Oracle - 2008-06-14 14:52:31 阅读(2959) 回复(8)

我用char[7]来取数据,是乱码,也无法把取出的数去insert进表中。不知道该如何处理,哪位高人教我。

by zhoumj - C/C++ - 2004-04-06 14:11:33 阅读(1773) 回复(4)

new date() will get the current time like: Calendar calendar = new GregorianCalendar(); return calendar.getTime(); if you want to set the hour and min to 0, you can calendar.set(Calendar.HOUR, 0); calendar.set(Calendar.MINUTE, 0); but this doesn't work(I don't know why) so I had to do like this: java.sql.date.valueOf(dateUtils.formatdateTodate(new D...

by ganqing1234 - Java文档中心 - 2007-08-01 16:08:33 阅读(756) 回复(0)

我有个表中的某个字段是date类型的,但是有一笔资料查询的时候出错。 1210: date could not be converted to month/day/year format,我很奇怪怎么会有这笔资料,它是如何输入进去的?

by James_Guan - Informix - 2006-01-13 12:11:07 阅读(1578) 回复(2)