您的位置:首页 > 博客中心 > 数据库 >

怎样把 excel 的数据导入到数据库里面去

时间:2022-03-10 17:30

1. 把 excel 另存为 .csv 格式

2. 用 Notepad 打开 .csv 文件, 第一行就是所有的字段

3. 创建表结构

create table yu_rt_01 as
select Transaction_Id,Last_Update_Date,Last_Updated_By,Creation_Date,Created_By,Last_Update_Login,Request_Id,... ,Lcm_Shipment_Line_Id
from rcv_transactions where 1=2;

4. 检查表里面没有数据

5. 打开 Toad for Oracle

6. 连接数据库

7. Database -> Import -> Import Table Data

8. 选择表 yu_rt_01

9. 点击 show data, 现在是空的

10. Next

11. Import form = text, File 是刚才保存的 .csv 文件

12. Next

13. First Row 改成 2

14. 其他所有的保持默认, 点击 commit

15. select * from yu_rt_01



怎样把 excel 的数据导入到数据库里面去,布布扣,bubuko.com

热门排行

今日推荐

热门手游