ITPub博客

首页 > 数据库 > Oracle > OCP 1Z0-051-81

OCP 1Z0-051-81

原创 Oracle 作者:LuiseDalian 时间:2014-05-17 07:27:00 0 删除 编辑
(81)You are currently located in Singapore and have connected to a remote database in Chicago. You issue the following command:

SELECT ROUND(SYSDATE - promo_begin_date, 0)

FROM promotions

WHERE (SYSDATE - promo_begin_date)/365 > 2;

PROMOTIONS is the public synonym for the public database link for the PROMOTIONS table. What is the outcome?

A. an error because the ROUND function specified is invalid

B. an error because the WHERE condition specified is invalid

C. number of days since the promo started based on the current Chicago date and time

D. number of days since the promo started based on the current Singapore date and time

答案:(C)

解析:

SYSDATE返回的是实际执行查询的服务器的系统时间。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1163105/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: OCP 1Z0-051-85
下一篇: OCP 1Z0-051-88
请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6042490