English 中文(简体)
这些函数存储在Oracle数据库中的哪里?
原标题:
  • 时间:2009-03-24 09:40:06
  •  标签:

sysdate函数存储在哪个包中?请指出。 sysdate函数存储在哪个包中,例如:

select sysdate from dual;
select systimestamp from dual;

另外,把這個查詢取出來:

select sys.login_user,sys.database_name ,sys.sysevent from dual;
  • what is sys here?
  • Is it a package?
  • where is this package stored?
  • can I view the source(text) in this package please provide me the query?
问题回答

SYSDATE和SYSTIMESTAMP是由SYS拥有的STANDARD包中的函数。然而,这是一个特殊的包,所以您不需要指定standard.sysdate(实际上,您不能这样做!)

你可以像这样查看这个包裹:

select text
from   all_source
where owner= SYS 
and name= STANDARD 
and type =  PACKAGE BODY 
order by line;

sys is a schema. sysdate is a glovbally available variable containing the current date/time.





相关问题
热门标签