首页 > 数据库 > Oracle > OCP 1Z0-051-81
|
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/ ,如需转载,请注明出处,否则将追究法律责任。