Export the database to excel to solve the problem of scientific notation

When using Navicat and other tools to export data to excel, numbers exceeding 11 digits such as ID cards will be automatically converted into scientific notation, and the number at the end becomes "0000". How to solve?

Solution: add \t to the end of numbers with more than 11 digits

 

When querying, add \t to the relevant field


SELECT name,CONCAT(idcard,'\t') from lm_reg

Then export the query results to excel.

 

If it is a cvs file, open it with excel, the ID card and other fields with more than 11 digits are displayed in scientific notation, see the solution:

https://zengmiaogen.blog.csdn.net/article/details/107072158

 

 

Guess you like

Origin blog.csdn.net/zengmingen/article/details/107072295