单项选择题

以下()能够提取当前的系统时间并且显示成“2010”的格式

A.Select to_char(sysdate,’yyyy’)from dual
B.Select to_char(substr(sysdate,8,2),’year’)from dual
C.Select to_date(sysdate,’yyyy’)from dual
D.Select decode(substr(sysdate,8),’YYYY’)from dual

<上一题 目录 下一题>
热门 试题

单项选择题
现有订单表orders,包含用户信息userid,产品信息productid,以下()语句能够返回至少被订购过两的productid?

A.select productid from orders where count (productid)>1
B.select productid from orders where max (productid)>1
C.select productid from orders where having count(productid)>1group by productid
D.select productid from orders group by productid having count(productid)>1

单项选择题
在oracle中,seq是个序列,以下语句能返回序列值但不会引起序列值增加的()

A.select seg.rowcount from dual;
B.select seq.rowid from dual;
C.select seg.currval from dual;
D.select seq.nextval from dual;

相关试题
  • 下列T-SQL语句中,创建关系表的是()。
  • 数据库中只存储视图的()。
  • 有having子句,则该查询语句中肯定含有关键...
  • 每一个关系都有一个且仅有一个()。
  • 在SQL查询语句的模糊查询中,可以匹配0个...