步骤1 create table table1 (uID int,CRTime date);
步骤2 insert into table1 (uID) values (1);
步骤3 select case CRTime when null then sysdate else CRTime end from table1;但是步骤3取不到sysdate的值?请问应如何取?谢谢
步骤2 insert into table1 (uID) values (1);
步骤3 select case CRTime when null then sysdate else CRTime end from table1;但是步骤3取不到sysdate的值?请问应如何取?谢谢
解决方案 »
- oracle table() 用法
- PowerCenter8.1读取Oracle10g的数据到flat file中文出现乱码
- ORA-12528:all appropriate instances are blocking
- ORACLE行列转换存储过程,如何转换成MSSQL? 急,在线等
- oracle查询问题,请会的人进来看一下指点一下菜鸟
- oracle 行锁 对多线程同时insert 有影响吗?
- 还是SQL(希望高手来抢分,不够可加,晚上结贴)
- 请帮我解决这个奇怪的问题。。。100分等候
- 某表死锁,请问在哪个数据字典中SELECT出来,并在远程SQLPLUS中如何KILL该session
- 关于对CLOB字段的模糊检索,在线等待!!
- 怎样在oracle创表的时候默认本机时间?
- oracle如何每次取1000条
select case when CRTime is null then sysdate else CRTime end from table1;
select NVL(CRTime,SYSDATE) from table1;
1* select case when CRTime is null then sysdate else CRTime end from table1
SQL> /CASEWHENCRTIME
--------------
20-7月 -10SQL> select nvl(CRTime,sysdate) from table1;NVL(CRTIME,SYS
--------------
20-7月 -10