资源描述:
《如何用toad导入excel报表》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、如何用toad导入excel报表经常有人问excel报表如何导入到oracle里,toad提供了这个功能,我们来做个简单的实验,一步一步把excel报表导入到oracle里。一:先建立个测试的excel报表test.xls(图1)(图1)二:[oracle@hundsun~]$sqlplus/assysdbaSQL*Plus:Release10.2.0.1.0-ProductiononThuDec619:33:522007Copyright(c)1982,2005,Oracle.Allrightsreserved.Conne
2、ctedtoanidleinstance.idle>startupORACLEinstancestarted.TotalSystemGlobalArea167772160bytesFixedSize1218316bytesVariableSize75499764bytesDatabaseBuffers88080384bytesRedoBuffers2973696bytesDatabasemounted.Databaseopened.idle>exitDisconnectedfromOracleDatabase10gEnter
3、priseEditionRelease10.2.0.1.0-ProductionWiththePartitioning,OLAPandDataMiningoptions[oracle@hundsun~]$sqlplus/assysdbaSQL*Plus:Release10.2.0.1.0-ProductiononThuDec619:34:212007Copyright(c)1982,2005,Oracle.Allrightsreserved.Connectedto:OracleDatabase10gEnterpriseEdi
4、tionRelease10.2.0.1.0-ProductionWiththePartitioning,OLAPandDataMiningoptionssys@NIUGE>connscott/tigerConnected.scott@NIUGE>createtablet(id_noint,id_no1int,id_no2int,id_no3int,id_no4int,id_no5int);createtablet(id_noint,id_no1int,id_no2int,id_no3int,id_no4int,id_no5i
5、nt)*ERRORatline1:ORA-00955:nameisalreadyusedbyanexistingobjectscott@NIUGE>c/t(/test(/1*createtabletest(id_noint,id_no1int,id_no2int,id_no3int,id_no4int,id_no5int)scott@NIUGE>r1*createtabletest(id_noint,id_no1int,id_no2int,id_no3int,id_no4int,id_no5int)Tablecreated.
6、scott@NIUGE>select*fromtest;norowsselected三:进入toad选择Database------Import----TableData(如图2)(图2)四:Schema选择SCOTT(如图3)(图3)五:Table选择TEST(如图4)(图4)六:CommitMode选择第二项,可以根据实际情况自己选择(如图5)(图5)七:点击ShowData选项,然后在点击ExecuteWizard选项---选择Excelfile选项(如图6)(图6)八:选择需要Import的excel文件,FileO
7、rigin默认选项(如图7)(图7)九:点击next后如图,俺默认,可根据实际情况自己来选择(如图8)(图8)十:点击Next后如下图,选择默认(如图9)(图9)十一:点击Next后如下图,选择默认(如图10)(图10)十二:点击Next后如下图,选择默认(如图11)(图11)十三:点击Next后进入如下图,点击Excute(如图12)(图12)十四:点击Next后进入如下图,选择第一项(如图13)(图13)十五:点击OK后如下图(图14),导入结束(图14)十六:scott@NIUGE>select*fromtest;ID
8、_NOID_NO1ID_NO2ID_NO3ID_NO4ID_NO5------------------------------------------------------------0000001111112222223333334444445555556666667rowsselec