oracle试题答案请教,急,在线等各位好心大侠~~~~~~~~~

1、 Oracle中常用的数据类型有 , 其中字符串数据类型有____________________.
2、 创建Oracle数据库以后默认的两个常用的用户有 和 .
3、 按要求填空:实现查询库存为null的产品信息:
select * from tab_product where stocks
4、 按要求填空:查询所有产品的编号、库存量,当库存量为null时显示为0:
select pid, from tab_product ;
5、 按要求填空:实现查询进货记录信息,先按产品号升序再按进货量降序排序
select * from tab_ingoods
6、 创建一个叫studentspace表空间,数据文件名为datafile01.dmp,大小为20M,写出这条语句
________________________________________________________________
7、 按要求填空:完成命令实现给usertest用户赋予CONNECT的角色 to usertest
8、 按要求填空:修改用户usertest的密码为oracle: Usertest identified by oracle;
9、 Oracle数据库中进行逻辑导入导出的命令分别是 和
10、 要导出某个用户的数据需要使用exp命令参数:___________,要导出整个数据库使用参数
___________________。
11、 填空创建只读视图的语句 create view viw_test as select * from tab_product
12、 Select LOWER(‘Hello’),UPPER(‘Hello’) , SUBSTR(‘Hello’,2,2) from dual;的结果是

13、 插入一条记录到进货表中,其中进货标号为O10012,产品编号为p1001,进货量为300,进货日期为‘2007-12-24 15:23:43’请写出这条语句__________________________________
___________________________________________________________________________________
14、 从已有的student表创建备份表befor_student,befor_student和student的表结构和数据完全一样,则这建表语句为
_________________________________________________________________.
15、 将销售商表和供货商表的查询结果联合在一起:
select * from tab_server

select * from tab_buy
16、 Oracle数据库中事务处理命令(即提交和回滚的命令)分别是 和

1、
CHAR
NCHAR
NVARCHAR2
VARCHAR2
VARCHAR
NUMBER
Floating-Point
DATE
TIMESTAMP
TIMESTAMP WITH TIME ZONE
TIMESTAMP WITH LOCAL TIME ZONE
INTERVAL YEAR TO MONTH
INTERVAL DAY TO SECOND
RAW
LONG RAW
BFILE
BLOB
CLOB
NCLOB

CHAR
NCHAR
NVARCHAR2
VARCHAR2
VARCHAR

2、
SYS
SYSTEM

3、
select * from tab_product where stocks is null

4、
select pid, nvl(stocks,0) from tab_product ;

5、
select * from tab_ingoods order by xxxx
select * from tab_ingoods order by yyyy desc

6、
create tablespace studentspace datafile '/oradata/datafile01.dmp' size 20M;

7、
grant connect to usertest;

8、
alter user usertest identified by oracle;

9、
exp/imp
expdp/impdp

10、
users
full

11、
create view viw_test as select * from tab_product with read only;

12、
hello HELLO el

13、
insert into table_name(进货标号,产品编号,进货量,进货日期) values('O10012','p1001',300,to_date('2007-12-24 15:23:43','yyyy-mm-dd hh24:mi:ss'));

14、
create table befor_student as select * from student;

15、
select * from tab_server
union
select * from tab_buy

16、
commit
rollback
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-04-24
1.NUMBER/CHAR CHAR2 VARCHAR VARCHAR2
2.sys system
3.is null
4.nvl(stocks,0)
5.pid asc,进货量 desc
6.create tablespace studentspace
file 'datafile01.dmp' size 20M
7.grant CONNECT
8.alter user
9.exp/imp
10.owner/full
11.with read only
12.hello/HELLO/el
13.insert into tab_ingoods(进货标号为,产品编号,进货量,进货日期) values('O10012','p1001',300,to_date('2007-12-24 15:23:43','YYYY-MM-DD HH24:MI:SS');
14.create table befor_student
as select * from student;
15.union all
16.commit/rollback
第2个回答  2012-04-24
1(1)字符型 数字型 日期型 浮点型 二进制型 实数型等 (2) char varchar nvarchar NCHAR
2 sys system
3 is null
4 ISNULL(dcucunliang,0)
5 order by chanpinhao asc,jinhuoliang desc
6 create tablespace studentspacedatafile '文件路径\datafile01.dmp size 20m;
7 grant
8 alter