oracle将数据库中的数据导入到excel中


前提背景

现在我想把用户zkj下的所有表数据导出到excel中保存下来以方便查阅或者形成报表【环境为oracle10g】

步骤如下:

 1,数据zkj下的表情况如下




2,在用户zkj下执行以下sql语句

set linesize 120
set pagesize 100
set feedback off
spool d:\exls\dish
select * from dish;
spool off;

spool d:\exls\consumer
select * from consumer;
spool off;

spool d:\exls\desk
select * from desk;
spool off;

spool d:\exls\orders
select * from orders;
spool off;

spool d:\exls\room
select * from room;
spool off;

spool d:\exls\orders_dish
select * from orders_dish;
spool off;

3,查看执行后的结果【保存的文件格式为*.lst,而且这里我没规整格式】



如此就变简单的完成了将用户的表数据导出
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值