dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.

Home Page:http://mycli.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

id truncated when exporting csv

longmenzhitong opened this issue · comments

[Environment] Windows 11, cygwin
[Description] My ID is: 1582917533873852417. After I export it to a csv it appears to a scientific notation. And its value becomes to 1582917533873850000, which I think has been truncated. But if I open the csv by notepad, I can see the ID is correct.
[Operation] \T csv ; \o ~/test.csv; select id from mytable
[Question] I realize that this is probably not a mycli problem, but is there anyway in mycli to solve or avloid it? Much thanks for any help :-).

I found a way to avoid this problem. Create a new .xlsx file and import the csv, choose text format in this progress. But this is not very convenient, is it?