<?xml version="1.0" encoding="UTF-8" ?><oembed><version>1.0</version><provider_name>Jui-Nan Lin&#039;s Blog</provider_name><provider_url>https://jnlin.org</provider_url><author_name>jnlin</author_name><author_url>https://jnlin.org/author/jnlin/</author_url><title>MySQL CLI 的 Pager</title><html>&lt;a href=&quot;http://www.mysqlperformanceblog.com/&quot;&gt;MySQL Performance Blog&lt;/a&gt; 這幾天介紹了 &lt;code&gt;mysql&lt;/code&gt; 的 &lt;a href=&quot;http://www.mysqlperformanceblog.com/2013/01/21/fun-with-the-mysql-pager-command/&quot;&gt;pager&lt;/a&gt; 功能，其中有幾個還蠻實用的：

&lt;ul&gt;
	&lt;li&gt;把 &lt;code&gt;pager&lt;/code&gt; 設定成 &lt;a href=&quot;http://manpages.ubuntu.com/manpages/precise/en/man1/md5sum.1.html&quot;&gt;md5sum&lt;/a&gt;，比對兩次 Query 結果是不是相同。&lt;/li&gt;
	&lt;li&gt;設定 pipe 到一串 shell tools (awk, sed) 來對結果作另一次的處理。&lt;/li&gt;
&lt;/ul&gt;

另外也可以：
&lt;ul&gt;
	&lt;li&gt;設定成 &lt;a href=&quot;http://manpages.ubuntu.com/manpages/precise/en/man1/tee.1posix.html&quot;&gt;tee&lt;/a&gt;，寫到檔案裡面去。&lt;/li&gt;
	&lt;li&gt;寫一個 script 來處理。&lt;/li&gt;
&lt;/ul&gt;

</html><type>rich</type></oembed>