#!/bin/sh
cd /d/compare
MYSQL="mysql -h -uroot -p**** --default-character-set=utf8 -A";
sql="select * from contrast.dx_record limit 0,10 ";
$MYSQL -e "$sql" >dx.xls
echo "end";
转换编码的指令
iconv -f utf-8 -t gb2312 dx.xls>compare1.xls
时间: 2024-10-13 01:13:30