<?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>Lame &#187; Uncategorized</title>
	<atom:link href="http://blog.schouman.info/index.php/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.schouman.info</link>
	<description>No more blogging!</description>
	<lastBuildDate>Thu, 26 Jan 2012 19:59:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title></title>
		<link>http://blog.schouman.info/index.php/2011/10/06/1260/</link>
		<comments>http://blog.schouman.info/index.php/2011/10/06/1260/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 07:21:16 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/?p=1260</guid>
		<description><![CDATA[Selecting a database: mysql&#62; USE database; Listing databases: mysql&#62; SHOW DATABASES; Listing tables in a db: mysql&#62; SHOW TABLES; Describing the format of a table: mysql&#62; DESCRIBE table; Creating a database: mysql&#62; CREATE DATABASE db_name; Creating a table: mysql&#62; CREATE TABLE table_name (field1_name TYPE(SIZE), field2_name TYPE(SIZE)); Ex: mysql&#62; CREATE TABLE pet (name VARCHAR(20), sex CHAR(1), [...]]]></description>
			<content:encoded><![CDATA[<p>Selecting a database:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; USE database;
</pre>
<p>Listing databases:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SHOW DATABASES;
</pre>
<p>Listing tables in a db:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SHOW TABLES;
</pre>
<p>Describing the format of a table:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; DESCRIBE table;
</pre>
<p>Creating a database:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; CREATE DATABASE db_name;
</pre>
<p>Creating a table:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; CREATE TABLE table_name (field1_name TYPE(SIZE), field2_name TYPE(SIZE));
Ex: mysql&gt; CREATE TABLE pet (name VARCHAR(20), sex CHAR(1), birth DATE);
</pre>
<p>Load tab-delimited data into a table:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; LOAD DATA LOCAL INFILE &quot;infile.txt&quot; INTO TABLE table_name;
(Use n for NULL)
</pre>
<p>Inserting one row at a time:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; INSERT INTO table_name VALUES ('MyName', 'MyOwner', '2002-08-31');
(Use NULL for NULL)
</pre>
<p>Retrieving information (general):</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT from_columns FROM table WHERE conditions;
All values: SELECT * FROM table;
Some values: SELECT * FROM table WHERE rec_name = &quot;value&quot;;
Multiple critera: SELECT * FROM TABLE WHERE rec1 = &quot;value1&quot; AND rec2 = &quot;value2&quot;;
</pre>
<p>Reloading a new data set into existing table:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SET AUTOCOMMIT=1; # used for quick recreation of table
mysql&gt; DELETE FROM pet;
mysql&gt; LOAD DATA LOCAL INFILE &quot;infile.txt&quot; INTO TABLE table;
</pre>
<p>Fixing all records with a certain value:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; UPDATE table SET column_name = &quot;new_value&quot; WHERE record_name = &quot;value&quot;;
</pre>
<p>Selecting specific columns:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT column_name FROM table;
</pre>
<p>Retrieving unique output records:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT DISTINCT column_name FROM table;
</pre>
<p>Sorting:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT col1, col2 FROM table ORDER BY col2;
Backwards: SELECT col1, col2 FROM table ORDER BY col2 DESC;
</pre>
<p>Date calculations:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT CURRENT_DATE, (YEAR(CURRENT_DATE)-YEAR(date_col)) AS time_diff [FROM table];
MONTH(some_date) extracts the month value and DAYOFMONTH() extracts day.
</pre>
<p>Pattern Matching:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT * FROM table WHERE rec LIKE &quot;blah%&quot;;
(% is wildcard - arbitrary # of chars)
Find 5-char values: SELECT * FROM table WHERE rec like &quot;_____&quot;;
(_ is any single character)
</pre>
<p>Extended Regular Expression Matching:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT * FROM table WHERE rec RLIKE &quot;^b$&quot;;
(. for char, [...] for char class, * for 0 or more instances
^ for beginning, {n} for repeat n times, and $ for end)
(RLIKE or REGEXP)
</pre>
<p>To force case-sensitivity, use &#8220;REGEXP BINARY&#8221;</p>
<p>Counting Rows:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT COUNT(*) FROM table;
</pre>
<p>Grouping with Counting:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT owner, COUNT(*) FROM table GROUP BY owner;
(GROUP BY groups together all records for each 'owner')
</pre>
<p>Selecting from multiple tables:<br />
(Example)</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT pet.name, comment FROM pet, event WHERE pet.name = event.name;
(You can join a table to itself to compare by using 'AS')
</pre>
<p>Currently selected database:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT DATABASE();
</pre>
<p>Maximum value:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; SELECT MAX(col_name) AS label FROM table;
</pre>
<p>Auto-incrementing rows:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; CREATE TABLE table (number INT NOT NULL AUTO_INCREMENT, name CHAR(10) NOT NULL);
mysql&gt; INSERT INTO table (name) VALUES (&quot;tom&quot;),(&quot;dick&quot;),(&quot;harry&quot;);
</pre>
<p>Adding a column to an already-created table:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; ALTER TABLE tbl ADD COLUMN [column_create syntax] AFTER col_name;
</pre>
<p>Removing a column:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
mysql&gt; ALTER TABLE tbl DROP COLUMN col;
</pre>
<p>(Full ALTER TABLE syntax available at mysql.com.)</p>
<p>Batch mode (feeding in a script):</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
# mysql -u user -p &lt; batch_file
</pre>
<p>(Use -t for nice table layout and -vvv for command echoing.)<br />
Alternatively: mysql> source batch_file;</p>
<p>Backing up a database with mysqldump:</p>
<pre class="prettyprint linenumstrigger linenums lang-bash">
# mysqldump --opt -u username -p database &gt; database_backup.sql
</pre>
<p>(Use &#8216;mysqldump &#8211;opt &#8211;all-databases > all_backup.sql&#8217; to backup everything.)<br />
(More info at MySQL&#8217;s docs.)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2011/10/06/1260/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jaaaaa the duke is back #dukenukem</title>
		<link>http://blog.schouman.info/index.php/2011/06/10/jaaaaa-the-duke-is-back-dukenukem/</link>
		<comments>http://blog.schouman.info/index.php/2011/06/10/jaaaaa-the-duke-is-back-dukenukem/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 17:20:34 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/index.php/2011/06/10/jaaaaa-the-duke-is-back-dukenukem/</guid>
		<description><![CDATA[- Posted using MobyPicture.com]]></description>
			<content:encoded><![CDATA[<p>	<a href="http://www.mobypicture.com/user/metalmini/view/9765143" title="See more at MobyPicture.com"><img src="http://blog.schouman.info/wp-content/uploads/2011/06/c4b3efc17163e79f598993c3af43a20f.jpg" width="400px" alt="Image posted by MobyPicture.com" /></a><br />
				- Posted using <a href="http://www.mobypicture.com">MobyPicture.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2011/06/10/jaaaaa-the-duke-is-back-dukenukem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#apple how about a filter in the app store, if 3g dont show stuff that will not run anyway</title>
		<link>http://blog.schouman.info/index.php/2011/02/12/apple-how-about-a-filter-in-the-app-store-if-3g-dont-show-stuff-that-will-not-run-anyway/</link>
		<comments>http://blog.schouman.info/index.php/2011/02/12/apple-how-about-a-filter-in-the-app-store-if-3g-dont-show-stuff-that-will-not-run-anyway/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 22:11:37 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/index.php/2011/02/12/apple-how-about-a-filter-in-the-app-store-if-3g-dont-show-stuff-that-will-not-run-anyway/</guid>
		<description><![CDATA[- Posted using MobyPicture.com]]></description>
			<content:encoded><![CDATA[<p>	<a href="http://www.mobypicture.com/user/metalmini/view/8703193" title="See more at MobyPicture.com"><img src="http://blog.schouman.info/wp-content/uploads/2011/02/de803c428dd7a51cfc8322dd39608648.jpg" width="400px" alt="Image posted by MobyPicture.com" /></a><br />
				- Posted using <a href="http://www.mobypicture.com">MobyPicture.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2011/02/12/apple-how-about-a-filter-in-the-app-store-if-3g-dont-show-stuff-that-will-not-run-anyway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In brabant spelen meisjes niet met poppen maar met kippen&#8230;</title>
		<link>http://blog.schouman.info/index.php/2011/02/06/in-brabant-spelen-meisjes-niet-met-poppen-maar-met-kippen/</link>
		<comments>http://blog.schouman.info/index.php/2011/02/06/in-brabant-spelen-meisjes-niet-met-poppen-maar-met-kippen/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 11:40:12 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/index.php/2011/02/06/in-brabant-spelen-meisjes-niet-met-poppen-maar-met-kippen/</guid>
		<description><![CDATA[- Posted using MobyPicture.com]]></description>
			<content:encoded><![CDATA[<p>	<a href="http://www.mobypicture.com/user/metalmini/view/8661604" title="See more at MobyPicture.com"><img src="http://blog.schouman.info/wp-content/uploads/2011/02/25ddbe37a4d9bac9d2e40d13cc89105d.jpg" width="400px" alt="Image posted by MobyPicture.com" /></a><br />
				- Posted using <a href="http://www.mobypicture.com">MobyPicture.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2011/02/06/in-brabant-spelen-meisjes-niet-met-poppen-maar-met-kippen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Het is officieel, ze staat bij ons op stal, mag ik een warm welkom voor: Nirvana aka Nikky</title>
		<link>http://blog.schouman.info/index.php/2011/01/29/het-is-officieel-ze-staat-bij-ons-op-stal-mag-ik-een-warm-welkom-voor-nirvana-aka-nikky/</link>
		<comments>http://blog.schouman.info/index.php/2011/01/29/het-is-officieel-ze-staat-bij-ons-op-stal-mag-ik-een-warm-welkom-voor-nirvana-aka-nikky/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 20:49:30 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/index.php/2011/01/29/het-is-officieel-ze-staat-bij-ons-op-stal-mag-ik-een-warm-welkom-voor-nirvana-aka-nikky/</guid>
		<description><![CDATA[- Posted using MobyPicture.com]]></description>
			<content:encoded><![CDATA[<p>	<a href="http://www.mobypicture.com/user/metalmini/view/8602151" title="See more at MobyPicture.com"><img src="http://blog.schouman.info/wp-content/uploads/2011/01/08a9d88f3d6870d03f19f5990c826887.jpg" width="400px" alt="Image posted by MobyPicture.com" /></a><br />
				- Posted using <a href="http://www.mobypicture.com">MobyPicture.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2011/01/29/het-is-officieel-ze-staat-bij-ons-op-stal-mag-ik-een-warm-welkom-voor-nirvana-aka-nikky/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#tmobile kwam overigens met een briljante smoes&#8230;</title>
		<link>http://blog.schouman.info/index.php/2010/12/12/tmobile-kwam-overigens-met-een-briljante-smoes/</link>
		<comments>http://blog.schouman.info/index.php/2010/12/12/tmobile-kwam-overigens-met-een-briljante-smoes/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 19:43:28 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/index.php/2010/12/12/tmobile-kwam-overigens-met-een-briljante-smoes/</guid>
		<description><![CDATA[- Posted using MobyPicture.com]]></description>
			<content:encoded><![CDATA[<p>	<a href="http://www.mobypicture.com/user/metalmini/view/8218113" title="See more at MobyPicture.com"><img src="http://blog.schouman.info/wp-content/uploads/2010/12/21f005fa423df8f288aa5041bbab586c.jpg" width="400px" alt="Image posted by MobyPicture.com" /></a><br />
				- Posted using <a href="http://www.mobypicture.com">MobyPicture.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2010/12/12/tmobile-kwam-overigens-met-een-briljante-smoes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ow ja, beetje laat maar hier is de uitkomst van het 3x raden spel</title>
		<link>http://blog.schouman.info/index.php/2010/12/11/ow-ja-beetje-laat-maar-hier-is-de-uitkomst-van-het-3x-raden-spel/</link>
		<comments>http://blog.schouman.info/index.php/2010/12/11/ow-ja-beetje-laat-maar-hier-is-de-uitkomst-van-het-3x-raden-spel/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 09:27:09 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/index.php/2010/12/11/ow-ja-beetje-laat-maar-hier-is-de-uitkomst-van-het-3x-raden-spel/</guid>
		<description><![CDATA[- Posted using MobyPicture.com]]></description>
			<content:encoded><![CDATA[<p>	<a href="http://www.mobypicture.com/user/metalmini/view/8205531" title="See more at MobyPicture.com"><img src="http://blog.schouman.info/wp-content/uploads/2010/12/d6f68023649d8870544041bb65a9bdde.jpg" width="400px" alt="Image posted by MobyPicture.com" /></a><br />
				- Posted using <a href="http://www.mobypicture.com">MobyPicture.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2010/12/11/ow-ja-beetje-laat-maar-hier-is-de-uitkomst-van-het-3x-raden-spel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Laat de kerst maar komen :-)</title>
		<link>http://blog.schouman.info/index.php/2010/12/05/laat-de-kerst-maar-komen/</link>
		<comments>http://blog.schouman.info/index.php/2010/12/05/laat-de-kerst-maar-komen/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 12:45:42 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/index.php/2010/12/05/laat-de-kerst-maar-komen/</guid>
		<description><![CDATA[- Posted using MobyPicture.com]]></description>
			<content:encoded><![CDATA[<p>	<a href="http://www.mobypicture.com/user/metalmini/view/8163415" title="See more at MobyPicture.com"><img src="http://blog.schouman.info/wp-content/uploads/2010/12/b3b1dac074595b85ce0d40f608a8a7b5.jpg" width="400px" alt="Image posted by MobyPicture.com" /></a><br />
				- Posted using <a href="http://www.mobypicture.com">MobyPicture.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2010/12/05/laat-de-kerst-maar-komen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3x raden wat wij straks in huis hebben &#8211;</title>
		<link>http://blog.schouman.info/index.php/2010/11/25/3x-raden-wat-wij-straks-in-huis-hebben/</link>
		<comments>http://blog.schouman.info/index.php/2010/11/25/3x-raden-wat-wij-straks-in-huis-hebben/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 19:16:24 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/index.php/2010/11/25/3x-raden-wat-wij-straks-in-huis-hebben/</guid>
		<description><![CDATA[- Posted using MobyPicture.com]]></description>
			<content:encoded><![CDATA[<p>	<a href="http://www.mobypicture.com/user/metalmini/view/8091507" title="See more at MobyPicture.com"><img src="http://blog.schouman.info/wp-content/uploads/2010/11/3c1f4b7b943be6528f59fc43b6224150.jpg" width="400px" alt="Image posted by MobyPicture.com" /></a><br />
				- Posted using <a href="http://www.mobypicture.com">MobyPicture.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2010/11/25/3x-raden-wat-wij-straks-in-huis-hebben/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>@theoploeg ik zag iets moois voor je bij de Hema ;-) &#8211;</title>
		<link>http://blog.schouman.info/index.php/2010/11/17/theoploeg-ik-zag-iets-moois-voor-je-bij-de-hema/</link>
		<comments>http://blog.schouman.info/index.php/2010/11/17/theoploeg-ik-zag-iets-moois-voor-je-bij-de-hema/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 20:13:08 +0000</pubDate>
		<dc:creator>michael schouman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.schouman.info/index.php/2010/11/17/theoploeg-ik-zag-iets-moois-voor-je-bij-de-hema/</guid>
		<description><![CDATA[- Posted using MobyPicture.com]]></description>
			<content:encoded><![CDATA[<p>	<a href="http://www.mobypicture.com/user/metalmini/view/8030226" title="See more at MobyPicture.com"><img src="http://blog.schouman.info/wp-content/uploads/2010/11/9162586f989b32680aeae2784304539b.jpg" width="400px" alt="Image posted by MobyPicture.com" /></a><br />
				- Posted using <a href="http://www.mobypicture.com">MobyPicture.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schouman.info/index.php/2010/11/17/theoploeg-ik-zag-iets-moois-voor-je-bij-de-hema/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>



