C. 1
update emp 2
salary = 3500 , job = 'Programmer' 3
where empno = 1007 ; D. 1
update emp 2
set salary = 3500 , job = 'Programmer' 3
where empno = 1007 ; 正确答案:D解析: 16.
修改emp表删除bonus列,下列SQL语句正确的是:()。 A.alter table emp drop (bonus) ; B.alter table emp drop column (bonus) ; C.alter table emp delete column (bonus) ; D.alter table emp delete (bonus) ; 正确答案:A解析:
17.
下列SQL语句查询到的字符串是:()。 SELECT SUBSTR('JavaPhpOracleC++Html',5, 9) FROM DUAL; A.hpOracleC B.PhpOracle C.hpOr D.PhpO
正确答案:B解析: 18.
下列SQL语句的查询结果是:()。 SELECT CEIL(35.823),FLOOR(35.823) FROM DUAL; A.35 35 B.35 36 C.36 35 D.36 36
正确答案:C解析: 19.
test表包含一列c1为date类型数据,向该列插入2008年8月8日8点8分8秒,然后查询该表以“2008-08-08 08:08:08”格式显示c1列数据,下列SQL语句正确的是:()。 A. 1
insert into test values 2
(to_char('2008-08-08 08:08:08','yyyy-mm-dd hh24:mi:ss')); 3
select to_char(c1,'yyyy-mm-dd hh24:mi:ss') from test; B. 1
insert into test values 2
(to_date('2008-08-08 08:08:08','yyyy-mm-dd hh24:mi:ss')); 3
select to_date(c1,'yyyy-mm-dd hh24:mi:ss') from test; C. 1
insert into test values 2
(to_char('2008-08-08 08:08:08','yyyy-mm-dd hh24:mi:ss')); 3
select to_date(c1,'yyyy-mm-dd hh24:mi:ss') from test; D. 1
insert into test values
2
(to_date('2008-08-08 08:08:08','yyyy-mm-dd hh24:mi:ss')); 3
select to_char(c1,'yyyy-mm-dd hh24:mi:ss') from test; 正确答案:D解析: 20.
下列选项中说法正确的是:()。
A.“empno NUMBER(6)“表示empno列中的数据为整数,最大位数为6位。
B.“balance NUMBER(10,1)“表示balance列中的数据,整数最大位数为10位,小数为1位。
C.“bak CHAR(10)”表示bak列中最多可存储10个字节的字符串,并且占用的空间是固定的10个字节
D.“content VARCHAR2(300)”表示content列中最多可存储长度为300个字节的字符串。根据其中保存的数据长度,占用的空间是变化的,最大占用空间为300个字节。 正确答案:ACD解析: