<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>深蓝的blog &#187; 导出excel</title>
	<atom:link href="http://www.lanxinbase.com/?feed=rss2&#038;tag=%E5%AF%BC%E5%87%BAexcel" rel="self" type="application/rss+xml" />
	<link>http://www.lanxinbase.com</link>
	<description>记录日常生活</description>
	<lastBuildDate>Sat, 07 Feb 2026 10:59:52 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.3</generator>
	<item>
		<title>Mysql中使用SQL语句命令导出到Excel文件</title>
		<link>http://www.lanxinbase.com/?p=472</link>
		<comments>http://www.lanxinbase.com/?p=472#comments</comments>
		<pubDate>Wed, 26 Aug 2015 01:51:34 +0000</pubDate>
		<dc:creator><![CDATA[Alan]]></dc:creator>
				<category><![CDATA[3.数据库相关]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[导出excel]]></category>

		<guid isPermaLink="false">http://blog.lanxinbase.com/?p=472</guid>
		<description><![CDATA[方法一

php教程用mysql的命令和shell

select * into outfile './bestlovesky.xls' from bestlovesky where 1 order by id desc  limit 0, 50;

方法二 把bestlovesky.xls以文本方式打开，然后另存为，在编码选择ansi编码，保存

echo "select id,name from bestlovesky where 1 order by id desc limit 0, 50;"&#124; /usr/local/mysql/bin/mysql -h127.0.0.1-uroot -p123456 > /data/bestlovesky.xls]]></description>
		<wfw:commentRss>http://www.lanxinbase.com/?feed=rss2&#038;p=472</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
