mysql> show variables like ‘%secure%‘;
+------------------+---------------------+
| Variable_name | Value |
+------------------+---------------------+
| secure_auth | ON |
| secure_file_priv | /data/var-3307 |
+------------------+---------------------+
2 rows in set (0.00 sec)
select * into outfile ‘/data/var-3307/user.xls‘ from user where userid>1000;
.xls:EXCEL
.csv:记事本
上述方式,查询的身份证记录显示不正确,解决方式:
利用 navicat查询结果导出,然后粘贴至EXCEL,将省份证列修改为文本格式,然后从navicat复制,粘贴只EXCEL相应列
原文地址:https://www.cnblogs.com/elontian/p/9185343.html
时间: 2024-11-11 11:12:58