<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: mysql cmdline tricks: output control (\G, pager, tee)</title>
	<atom:link href="http://openquery.com/blog/mysql-cmdline-tricks-output-control-g-pager-tee/feed" rel="self" type="application/rss+xml" />
	<link>http://openquery.com/blog/mysql-cmdline-tricks-output-control-g-pager-tee</link>
	<description>About MySQL, Drizzle, MariaDB and more!</description>
	<lastBuildDate>Mon, 19 Mar 2012 14:26:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: anonymous</title>
		<link>http://openquery.com/blog/mysql-cmdline-tricks-output-control-g-pager-tee/comment-page-1#comment-647</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Mon, 30 Jun 2008 18:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://openquery.com/blogs/mysql-cmdline-tricks-output-control-g-pager-tee#comment-647</guid>
		<description>&quot;Does the cmdline client enable multi-query for its connection? If not, the server won&#039;t even accept it, right?&quot;

Like described in the article, it accepts it, yes:

mysql&gt; delimiter go
mysql&gt; select 1; select 2;
    -&gt; go
+---+
&#124; 1 &#124;
+---+
&#124; 1 &#124;
+---+
1 row in set (0.00 sec)

+---+
&#124; 2 &#124;
+---+
&#124; 2 &#124;
+---+
1 row in set (0.00 sec)

mysql&gt;


Roland</description>
		<content:encoded><![CDATA[<p>&#8220;Does the cmdline client enable multi-query for its connection? If not, the server won&#8217;t even accept it, right?&#8221;</p>
<p>Like described in the article, it accepts it, yes:</p>
<p>mysql> delimiter go<br />
mysql> select 1; select 2;<br />
    -> go<br />
+&#8212;+<br />
| 1 |<br />
+&#8212;+<br />
| 1 |<br />
+&#8212;+<br />
1 row in set (0.00 sec)</p>
<p>+&#8212;+<br />
| 2 |<br />
+&#8212;+<br />
| 2 |<br />
+&#8212;+<br />
1 row in set (0.00 sec)</p>
<p>mysql></p>
<p>Roland</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arjen</title>
		<link>http://openquery.com/blog/mysql-cmdline-tricks-output-control-g-pager-tee/comment-page-1#comment-646</link>
		<dc:creator>arjen</dc:creator>
		<pubDate>Mon, 30 Jun 2008 07:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://openquery.com/blogs/mysql-cmdline-tricks-output-control-g-pager-tee#comment-646</guid>
		<description>Does the cmdline client enable multi-query for its connection? If not, the server won&#039;t even accept it, right?</description>
		<content:encoded><![CDATA[<p>Does the cmdline client enable multi-query for its connection? If not, the server won&#8217;t even accept it, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous</title>
		<link>http://openquery.com/blog/mysql-cmdline-tricks-output-control-g-pager-tee/comment-page-1#comment-645</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Mon, 30 Jun 2008 04:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://openquery.com/blogs/mysql-cmdline-tricks-output-control-g-pager-tee#comment-645</guid>
		<description>Another useful thing I found out (in Linux though, don&#039;t know if it works in Windows) was using &quot;\!  cmd &quot; to run a command on the shell. For instance, if you were running a file called mark.sql, by running &quot;&gt;mysql source mark.sql&quot; and you wanted to edit it, you could do so by entering &quot;\! vim mark.sql&quot;  Of course you can always do this in separate sessions, but I find it useful.
Mark Nessfield
www.mysql.oxford123.co.uk/blogs</description>
		<content:encoded><![CDATA[<p>Another useful thing I found out (in Linux though, don&#8217;t know if it works in Windows) was using &#8220;\!  cmd &#8221; to run a command on the shell. For instance, if you were running a file called mark.sql, by running &#8220;>mysql source mark.sql&#8221; and you wanted to edit it, you could do so by entering &#8220;\! vim mark.sql&#8221;  Of course you can always do this in separate sessions, but I find it useful.<br />
Mark Nessfield<br />
<a href="http://www.mysql.oxford123.co.uk/blogs" rel="nofollow">http://www.mysql.oxford123.co.uk/blogs</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous</title>
		<link>http://openquery.com/blog/mysql-cmdline-tricks-output-control-g-pager-tee/comment-page-1#comment-644</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Sat, 28 Jun 2008 02:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://openquery.com/blogs/mysql-cmdline-tricks-output-control-g-pager-tee#comment-644</guid>
		<description>&quot;the semicolon is not actually part of the SQL command. It&#039;s merely a delimiter that tells the client code to send the query to the server. If you&#039;re in a programming or scripting language using the MySQL API, you wouldn&#039;t include it in the query string.&quot;

Well, yes and no. Even in pure SQL (not SP context), the semi-colon is interpreted by the server to delimit SQL statements. It can be used to send a batch of statements (and if applicable, receive a batch of results too) in just one roundtrip. 

Of course you won&#039;t notice this meaning of semi-colon unless you set the default mysql client delimiter to something other than the semicolon.

http://rpbouman.blogspot.com/2008/02/most-misunderstood-character-in-mysqls.html

Best regards,

Roland Bouman</description>
		<content:encoded><![CDATA[<p>&#8220;the semicolon is not actually part of the SQL command. It&#8217;s merely a delimiter that tells the client code to send the query to the server. If you&#8217;re in a programming or scripting language using the MySQL API, you wouldn&#8217;t include it in the query string.&#8221;</p>
<p>Well, yes and no. Even in pure SQL (not SP context), the semi-colon is interpreted by the server to delimit SQL statements. It can be used to send a batch of statements (and if applicable, receive a batch of results too) in just one roundtrip. </p>
<p>Of course you won&#8217;t notice this meaning of semi-colon unless you set the default mysql client delimiter to something other than the semicolon.</p>
<p><a href="http://rpbouman.blogspot.com/2008/02/most-misunderstood-character-in-mysqls.html" rel="nofollow">http://rpbouman.blogspot.com/2008/02/most-misunderstood-character-in-mysqls.html</a></p>
<p>Best regards,</p>
<p>Roland Bouman</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: awfief</title>
		<link>http://openquery.com/blog/mysql-cmdline-tricks-output-control-g-pager-tee/comment-page-1#comment-643</link>
		<dc:creator>awfief</dc:creator>
		<pubDate>Fri, 27 Jun 2008 22:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://openquery.com/blogs/mysql-cmdline-tricks-output-control-g-pager-tee#comment-643</guid>
		<description>Funny how a week after I finish writing the MySQL Magazine article about the mysql commandline options (you can do all that using the mysql command line, or put it in an option file), both Peter and you write about some of them.  :)

Although my focuses more on the commands from the shell commandline, and also goes into things like getting HTML output, and avoiding the &quot;table-style&quot; format of output when you want to avoid it.</description>
		<content:encoded><![CDATA[<p>Funny how a week after I finish writing the MySQL Magazine article about the mysql commandline options (you can do all that using the mysql command line, or put it in an option file), both Peter and you write about some of them.  <img src='http://openquery.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Although my focuses more on the commands from the shell commandline, and also goes into things like getting HTML output, and avoiding the &#8220;table-style&#8221; format of output when you want to avoid it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
