专业网站建设品牌,十四年专业建站经验,服务6000+客户--广州京杭网络
免费热线:400-683-0016      微信咨询  |  联系我们

当前位置:网站建设 > 技术支持

资料来源:网络整理       时间:2023/3/9 2:00:18       共计:3573 浏览
{"data":{"question_details":{"data":{"answers":[{"qid":"6735988669804462348","aid":"6810696482862137613","uid":"347080542389758","uname":"用户3494949202203","avatar_url":"https://p9-passport.byteacctimg.com/img/mosaic-legacy/3795/3047680722~300x300.image","auth_info":"","content":"\u003cp\u003e您好,很高兴为您解答。\u003c/p\u003e\u003cp\u003e一、将表中数据导入文本文件保存\u003c/p\u003e\u003cp\u003e我是在WIN下的命令行模式做的\u003c/p\u003e\u003cp\u003eMysql>select * from my_mysql_table into outfile 'c: /my_tmp.txt';\u003c/p\u003e\u003cp\u003e二、写控制文件\u003c/p\u003e\u003cp\u003e用记事本开文档写完后改扩展名为.ctl,以下是具体内容\u003c/p\u003e\u003cp\u003eload data\u003c/p\u003e\u003cp\u003einfile 'c:/my_tmp.txt'\u003c/p\u003e\u003cp\u003einto table my_ora_table\u003c/p\u003e\u003cp\u003ereplace \u003c/p\u003e\u003cp\u003efields terminated by x'09'\u003c/p\u003e\u003cp\u003e(字段1,字段2,字段3,......字段N)\u003c/p\u003e\u003cp\u003e字段1~N是你要导入的MySql的表字段数据,不需要的字段可以不写。\u003c/p\u003e\u003cp\u003e三、用Sqlldr导入文本\u003c/p\u003e\u003cp\u003ec:\\>sqlldr ora_usr\u003c/p\u003e\u003cp\u003e回车后输入控制文件的路径,密码,接下来加载控制文件自动导入。导入完成后,会生成个.log文件,可以查看你导入是否成功,不成功按提示的错误查找原因。\u003c/p\u003e\u003cp\u003e注意的是:导入文本前,应在ORACLE数据库中事先建好要写入数据的表,并且要和所要导入的数据字段一致,如果不知MySql的表结构,可以在Mysql>show create table my_mysql_table;查看建表的SQL,将其转换成Oracle中可执行的SQL. \u003c/p\u003e","abstract":"您好,很高兴为您解答。一、将表中数据导入...","create_time":1585738845,"update_time":1673982905,"digg_info":{"digg_count":0,"own_digg":false,"digg_list":null},"comment_info":{"comment_count":0},"repost_info":{"repost_count":0},"audit_info":{"audit_status":-1,"audit_status_msg":"","audit_status_msg_desc":""},"pv":0,"vl":65,"content_with_entity":"","extra":{"group_decay_type":"9","modify_time":"1673982905","propedit_review_visibility":"{\"prop_name\":\"review_visibility\",\"prop_value\":\"65\",\"editor\":\"toutiao.search_content.script\",\"reason_code\":0}","reviewed_level":"11","ugc_shark_decision":"{\"Decision\": \"BLOCK\", \"DecisionDetail\": \"reject\", \"HitStatus\": \"{\\\"32473\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"reject\\\"}}\"}","wd_activity_from":"answer_get_bonus","wd_source":"question_click_write_answer","wdh_client_ip":"14.29.32.162"},"integral_order_list":null,"integral_count":0,"bury_info":{"bury_count":0,"own_bury":false},"sent_flower_status":0,"could_show_flower_text":false,"author_digg_count":159,"author_show_digg_status":true,"ban_comment":false,"relation_info":{"is_following":false},"user_status":{"is_cancelled":false,"is_banned":false},"feedback_user_not_acted_aid":true,"help_info":{"is_helpful_count":0,"own_is_helpful":false}}],"has_more":false,"question":{"qid":"6735988669804462348","title":"如何将MySql数据导入至Oracle中?","content":"","pictures":null,"answer_count":1,"pv":673,"embrave":{"embrave_type":0,"integral_count":0,"gold_count":0,"reward_time":0},"create_time":1568344577,"vl":65,"audit_info":{"audit_status":2,"audit_status_msg":"","audit_status_msg_desc":""},"new_answer_cnt":0,"question_belong_status":2,"user_info":{"uid":"","uname":"陈坐光","avatar_url":"https://sf3-cdn-tos.toutiaostatic.com/img/mosaic-legacy/8615/1682352524~300x300.image"},"extra":{"has_out_answer":"1","modify_time":"1674584834","propedit_review_visibility":"{\"prop_name\":\"review_visibility\",\"prop_value\":\"65\",\"editor\":\"toutiao.search_content.script\",\"reason_code\":0}","wdh_client_ip":"127.0.0.1"},"img_q_integral":0,"feedback_user_not_answered":true,"feedback_user_not_acted":true},"rank1_could_show_flower_text":false,"contentType":"application/json; charset=utf-8","fontStyle":{"domains":["tosv.boe.byted.org"],"filename":"","base64":[],"fontKey":"","tosSuffix":""},"fontKey":"","fontStyleString":""},"errcode":0,"errmsg":"success"},"login_info":{"data":{"is_answered":1,"is_new":true,"uid":"","user_info":{"uid":"","uname":"","avatar_url":""}},"errcode":0,"errmsg":"success"}},"commonData":{"isSsrFrame":true,"ttLogId":"202302092112380101501341671EC018ED","location":{"hash":"","host":"so.toutiao.com","hostname":"so.toutiao.com","href":"https://so.toutiao.com/s/search_wenda_pc/list/?enter_from=search_result&qid=6735988669804462348&qname=如何将MySql数据导入至Oracle中?&search_id=202302092112350101501341671EC018D9&enter_answer_id=6810696482862137613&outer_show_aid=6810696482862137613&query=mysql怎么导入数据库","origin":"https://so.toutiao.com","pathname":"/s/search_wenda_pc/list/","port":"","protocol":"https:","search":"?enter_from=search_result&qid=6735988669804462348&qname=如何将MySql数据导入至Oracle中?&search_id=202302092112350101501341671EC018D9&enter_answer_id=6810696482862137613&outer_show_aid=6810696482862137613&query=mysql怎么导入数据库","username":"","password":""},"query":{"enter_from":"search_result","qid":"6735988669804462348","qname":"如何将MySql数据导入至Oracle中?","search_id":"202302092112350101501341671EC018D9","enter_answer_id":"6810696482862137613","outer_show_aid":"6810696482862137613","query":"mysql怎么导入数据库"},"client":{"width":1920,"height":880,"pixelRatio":1,"userAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36","isPC":true,"platform":"windows"},"serverEnv":"production","abFields":{},"user":{"webId":"7167564658018354696"},"isRPC":false,"params":{},"env":{"isBOE":false,"isProd":true,"isPPE":false,"cluster":"default"},"routingInfos":{"tc":"search_wenda_pc","business_path":"/list","routing_path":"/"}}}
版权说明:
本网站凡注明“广州京杭 原创”的皆为本站原创文章,如需转载请注明出处!
本网转载皆注明出处,遵循行业规范,如发现作品内容版权或其它问题的,请与我们联系处理!
欢迎扫描右侧微信二维码与我们联系。
·上一条:jdk优点作用_java | ·下一条:

Copyright © 广州京杭网络科技有限公司 2005-2024 版权所有    粤ICP备16019765号 

广州京杭网络科技有限公司 版权所有