navicat导出longtext类型数据乱码的解决方案

  1. 一、先使用sql查询出需要导出的内容,将longtext类型使用cast转化成char类型

  2. SELECT

    company_id,
      wechat_mp_appid,
      CAST(survey_risk_tips_org AS char)AS survey_risk_tips_org,
      CAST(survey_disclaimer AS char) AS survey_disclaimer,
    CAST( network_service_agreement AS char)AS network_service_agreement,
    CAST(qualified_investor_agreement AS char)AS qualified_investor_agreement,
    show_material_statement,
    time_material_statement,
    CAST(material_statement AS char)AS material_statement,
    CAST(survey_risk_tips_person AS char)AS survey_risk_tips_person,
    CAST(risk_confirmation AS char)AS risk_confirmation,
      CAST(login_tips AS char)login_tips 
    FROM
    wechat_setting w
    WHERE

      company_id = 0

    二运行sql语句,点击导出

    navicat导出longtext类型数据乱码的解决方案_第1张图片

    三、选择需要导出成的类型,然后一直点击下一步,直到完成

    navicat导出longtext类型数据乱码的解决方案_第2张图片



你可能感兴趣的:(数据库)