`

oracle 导入excel

阅读更多
先把excel改为csv文件,再编辑temp.ctl文件,如下:
load data
infile 'e:\city.csv'
replace into table sys_User_Role--表名
fields terminated by ',' optionally enclosed by '"'
trailing nullcols
(UserId,RoleId)--对应的列表

保存到E盘。


打开cmd:
sqlldr userid=root/root@elearning 按回键
control = e:\temp.ctl空格回车,就行了
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics