1. select * from p_table where OpenTime > sysdate;
2. select * from p_table where LogTime > to_char(sysdate,'yyyy-mm-dd hh24:mi:ss');
3. delcare
i integer :=2;
T date;
begin
select sysdate-i into T from dual;
end;4.
declare s varchar(200);begin
s := 'select * from TB';
dbms_output.put_line(s);end;
2. select * from p_table where LogTime > to_char(sysdate,'yyyy-mm-dd hh24:mi:ss');
3. delcare
i integer :=2;
T date;
begin
select sysdate-i into T from dual;
end;4.
declare s varchar(200);begin
s := 'select * from TB';
dbms_output.put_line(s);end;
解决方案 »
- orcle快速导入大量数据
- OCI程序向oracle表中插入数据导致引起表的锁,从而程序停止执行的问题(高分求)
- 数据恢复问题,急救!!
- oracle并行SQL和同步的问题
- 祝學:ORACLE建表、存儲過程問題?
- oracle触发器的使用!!!(可否在一个表中做双触发器为什么一直出现错误,高手请看)
- 如何卸载Oracle9I
- Oracle 连接问题 在线等待 急!!!!!!!!!解决马上给分
- 忘了某个用户的密码,我先把这个密码改掉,使用完毕然后改回来,但是出错....
- ORA-02085,这种错误谁遇到过,高手快来帮帮忙!!!!
- 数据恢复的时候出现 ora-1157
- 怎么设置linux系统下的数据库,能使其他机器远程能访问??
2. select * from p_table where LogTime > to_char(sysdate,'yyyy-mm-dd hh24:mi:ss');
3. delcare
i integer :=2;
T date;
begin
select sysdate-i into T from dual;
end;4.
declare s varchar(200);begin
s := 'select * from TB';
dbms_output.put_line(s);end;
谢谢,
但是第三个问题报错。
2. select * from p_table where LogTime > to_char(sysdate,'yyyy-mm-dd hh24:mi:ss');
3. delcare
i integer :=2;
T date;
begin
select sysdate-i into T from dual;
end;4.
declare s varchar(200);begin
s := 'select * from TB';
dbms_output.put_line(s);end;
谢谢,
但是第三个问题报错。declare
i integer := 2;
T date;
begin
select sysdate - i into T from dual;
dbms_output.put_line(T);
end;
2. select * from p_table where LogTime > to_char(sysdate,'yyyy-mm-dd hh24:mi:ss');
3. delcare
i integer :=2;
T date;
begin
select sysdate-i into T from dual;
end;4.
declare s varchar(200);begin
s := 'select * from TB';
dbms_output.put_line(s);end;
谢谢,
但是第三个问题报错。declare
i integer := 2;
T date;
begin
select sysdate - i into T from dual;
dbms_output.put_line(T);
end;输出结果是这个:02-6月 -14
不能和select sysdate -2 into T from dual ; 等效吗?
谢谢,
但是第三个问题报错。declare
i integer := 2;
T date;
begin
select sysdate - i into T from dual;
dbms_output.put_line(T);
end;输出结果是这个:02-6月 -14
不能和select sysdate -2 into T from dual ; 等效吗?
怎么等效?输出的结果就是SQL求出的结果啊