{"data":{"question_details":{"data":{"answers":[{"qid":"6749853904499900684","aid":"6749856000683016455","uid":"1719262663417939","uname":"用戶1719262663417939","avatar_url":"https://sf1-cdn-tos.toutiaostatic.com/img/user-avatar/7c4bf3f97697cc6cdf5d4e248998820a~300x300.image","auth_info":"","content":"\u003cp\u003emysql和sqlserver存在語法差異,直接導(dǎo)sql是不行的,不過可以通過sqlserver的bcp命令把 表里的數(shù)據(jù)導(dǎo)成指定格式的txt文件,比如列之間用逗號(hào)分割,行之間用\\n\\r分割這樣的數(shù)據(jù),mysql 就可以通過 load data infile命令來導(dǎo)入到庫里因?yàn)閟qlserver 不熟悉,所以bcp命令需要你自己研究下,mysql的 load data語法你可以參考:load data infile '/tmp/result.text' into table test_table fields terminated by ',' lines terminated by '\\n' ;意思是字段之間用逗號(hào)分割,行之間用\\n分割,數(shù)據(jù)文件是result.text \u003c/p\u003e","abstract":"mysql和sqlserver存在語法差...","create_time":1571573317,"update_time":1674110295,"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":"1674110295","propedit_review_visibility":"{\"prop_name\":\"review_visibility\",\"prop_value\":\"65\",\"confidence\":null,\"editor\":\"\",\"reason_code\":0,\"reason_message\":\"\",\"edit_time\":1604032531}","reviewed_level":"40","ugc_shark_decision":"{\"Decision\": \"BLOCK\", \"DecisionDetail\": \"reject\", \"HitStatus\": \"{\\\"27705\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"reject\\\"},\\\"20723\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"reject\\\"},\\\"2370\\\":{\\\"decision\\\":\\\"MARK\\\",\\\"decision_detail\\\":\\\"\\\"},\\\"5017\\\":{\\\"decision\\\":\\\"MARK\\\",\\\"decision_detail\\\":\\\"\\\"},\\\"19688\\\":{\\\"decision\\\":\\\"MARK\\\",\\\"decision_detail\\\":\\\"\\\"},\\\"23698\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"reject\\\"},\\\"23106\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"reject\\\"},\\\"18205\\\":{\\\"decision\\\":\\\"MARK\\\",\\\"decision_detail\\\":\\\"\\\"},\\\"20647\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"{\\\\\\\"from\\\\\\\":\\\\\\\"shark_admin\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"verify\\\\\\\",\\\\\\\"subtype\\\\\\\":\\\\\\\"slide\\\\\\\",\\\\\\\"detail\\\\\\\":{\\\\\\\"punish_duration\\\\\\\":60,\\\\\\\"exempt_duration\\\\\\\":1800}}\\\"},\\\"1071\\\":{\\\"decision\\\":\\\"MARK\\\",\\\"decision_detail\\\":\\\"\\\"},\\\"23027\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"reject\\\"},\\\"29693\\\":{\\\"decision\\\":\\\"MARK\\\",\\\"decision_detail\\\":\\\"\\\"},\\\"27689\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"reject\\\"},\\\"20648\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"{\\\\\\\"from\\\\\\\":\\\\\\\"shark_admin\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"verify\\\\\\\",\\\\\\\"subtype\\\\\\\":\\\\\\\"slide\\\\\\\",\\\\\\\"detail\\\\\\\":{\\\\\\\"punish_duration\\\\\\\":60,\\\\\\\"exempt_duration\\\\\\\":1800}}\\\"},\\\"23026\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"reject\\\"},\\\"26580\\\":{\\\"decision\\\":\\\"BLOCK\\\",\\\"decision_detail\\\":\\\"{\\\\\\\"from\\\\\\\":\\\\\\\"shark_admin\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"verify\\\\\\\",\\\\\\\"subtype\\\\\\\":\\\\\\\"slide\\\\\\\",\\\\\\\"detail\\\\\\\":{\\\\\\\"punish_duration\\\\\\\":60,\\\\\\\"exempt_duration\\\\\\\":1800}}\\\"}}\"}","wd_activity_from":"answer_get_bonus","wd_source":"question_click_write_answer","wdh_client_ip":"106.5.173.131"},"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":32,"author_show_digg_status":false,"ban_comment":false,"relation_info":{"is_following":false},"user_status":{"is_cancelled":false,"is_banned":true},"feedback_user_not_acted_aid":true,"help_info":{"is_helpful_count":0,"own_is_helpful":false}}],"has_more":false,"question":{"qid":"6749853904499900684","title":"sqlserver怎么導(dǎo)入mysql?","content":"","pictures":null,"answer_count":1,"pv":340,"embrave":{"embrave_type":0,"integral_count":0,"gold_count":0,"reward_time":0},"create_time":1571572829,"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":"陳遠(yuǎn)","avatar_url":"https://sf3-cdn-tos.toutiaostatic.com/img/mosaic-legacy/8609/4344743030~300x300.image"},"extra":{"group_decay_type":"10","has_out_answer":"1","modify_time":"1674509467","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":"202302092112450101501341671EC01931","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=6749853904499900684&qname=sqlserver怎么導(dǎo)入mysql?&search_id=202302092112410101501341671EC01908&enter_answer_id=6749856000683016455&outer_show_aid=6749856000683016455&query=mysql怎么導(dǎo)入數(shù)據(jù)庫","origin":"https://so.toutiao.com","pathname":"/s/search_wenda_pc/list/","port":"","protocol":"https:","search":"?enter_from=search_result&qid=6749853904499900684&qname=sqlserver怎么導(dǎo)入mysql?&search_id=202302092112410101501341671EC01908&enter_answer_id=6749856000683016455&outer_show_aid=6749856000683016455&query=mysql怎么導(dǎo)入數(shù)據(jù)庫","username":"","password":""},"query":{"enter_from":"search_result","qid":"6749853904499900684","qname":"sqlserver怎么導(dǎo)入mysql?","search_id":"202302092112410101501341671EC01908","enter_answer_id":"6749856000683016455","outer_show_aid":"6749856000683016455","query":"mysql怎么導(dǎo)入數(shù)據(jù)庫"},"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":"/"}}}
網(wǎng)站導(dǎo)航
- zblogPHP模板zbpkf
- zblog免費(fèi)模板zblogfree
- zblog模板學(xué)習(xí)zblogxuexi
- zblogPHP仿站zbpfang