数据库导出数据到excel

1.先写一个sql语句,查出你需要的数据。
select pin,name,mobile,email from pp_customer c
where c.name is not null and c.email is not null
and c.pin is not null and c.mobile is not null and rownum < 2001

select  replace(pin,' ','') pin,replace(mobile,' ','') mobile,replace(email,' ','') email from pp_customer c where c.email is not null
and c.pin is not null and c.mobile is not null and rownum < 8001
and c.register_date between to_date('2007-01-01','yyyy-MM-dd') and to_date('2007-12-31','yyyy-MM-dd')

2.右键左上角的框,选择 copy to Excel
[img]http://dl.iteye.com/upload/attachment/591040/67575994-e44f-32bb-b93b-1d93ac511bbb.gif[/img]
3。别忘了点这个。才能把数据都显示出来。
[img]http://dl.iteye.com/upload/attachment/591034/77696c80-4218-3ec9-ab1e-9ef265438cfc.jpg[/img]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值