<?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>hocuspokus &#187; mysql</title>
	<atom:link href="http://hocuspokus.net/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://hocuspokus.net</link>
	<description>the life and times of a code monkey</description>
	<lastBuildDate>Tue, 01 Jun 2010 16:40:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Buy My&#160;Book!</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Fbuy-my-book&amp;seed_title=Buy+My%26%23160%3BBook%21</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Fbuy-my-book&amp;seed_title=Buy+My%26%23160%3BBook%21#comments</comments>
		<pubDate>Wed, 26 Nov 2008 21:46:19 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[other]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[bixsolutions]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[ego]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[r]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=282</guid>
		<description><![CDATA[Was I really involved in writing something that sounds this classy?!?! â€œModern bioinformatics encompasses a broad and ever-changing range of activities involved with the management and analysis of data from molecular biology experiments. Despite the diversity of activities and applications, &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Fbuy-my-book&#38;seed_title=Buy+My%26%23160%3BBook%21">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Was I really involved in writing something that sounds this classy?!?!</p>

<blockquote>â€œModern bioinformatics encompasses a broad and ever-changing range of activities involved with the management and analysis of data from molecular biology experiments. Despite the diversity of activities and applications, the basic methodology and core tools needed to tackle bioinformatics problems is common to many projects. Building Bioinformatics Solutions provides a comprehensive introduction to this methodology, explaining how to acquire and use the most popular development tools, how to apply them to build processing pipelines, and how to make the results available through visualisations and web-based services for deployment either locally or via the Internet. The main development tools covered in this book are the MySQL database management system, the Perl programming language, and the R language for statistical computing. These industry standard open source tools form the core of many bioinformatics projects, both in academia and industry. The methodologies introduced are platform independent, and all the examples that feature have been tested on Windows, Linux and Mac OS. This advanced textbook is suitable for graduate students and researchers in the life sciences who wish to automate analyses or create their own databases and web-based tools. No prior knowledge of software development is assumed. Having worked through the book, the reader should have the necessary core skills to develop computational solutions for their specific research programmes. The book will also help the reader overcome the inertia associated with penetrating this field, and provide them with the confidence and understanding required to go on to develop more advanced bioinformatics skills.â€</blockquote>

<p>The book that I am a co-author on, <strong>Building Bioinformatics Solutions</strong> is shortly going to be available on <a href="http://www.amazon.co.uk/gp/product/0199230234?ie=UTF8&amp;tag=buildibioinfs-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=0199230234">Amazon (UK)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.co.uk/e/ir?t=buildibioinfs-21&amp;l=as2&amp;o=2&amp;a=0199230234" border="0" alt="" width="1" height="1" /> and <a href="http://www.amazon.com/gp/product/0199230234?ie=UTF8&#038;tag=buildibioinfs-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0199230234">Amazon (US)</a><img src="http://www.assoc-amazon.com/e/ir?t=buildibioinfs-20&#038;l=as2&#038;o=1&#038;a=0199230234" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> as well as other countries.</p>

<p>If you&#8217;re looking for an introduction to some of the tools used in the field of Bioinformatics (programming, databases, data analysis) or even just looking for a general introduction to Perl programming, MySQL or R why not check it out. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>

<p>Still here and after more?!?! Why not head on over to <a href="http://bixsolutions.net">bixsolutions.net</a> - the companion site for the book, and take a peek at what&#8217;s on offer.</p>

<p>Now get off my lawn! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-wink.png' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Fbuy-my-book&amp;seed_title=Buy+My%26%23160%3BBook%21/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visualizing Your DBIC&#160;Schema</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fvisualizing-your-dbic-schema&amp;seed_title=Visualizing+Your+DBIC%26%23160%3BSchema</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fvisualizing-your-dbic-schema&amp;seed_title=Visualizing+Your+DBIC%26%23160%3BSchema#comments</comments>
		<pubDate>Fri, 19 Oct 2007 19:13:52 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[catalyst]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2007/10/19/visualizing-your-dbic-schema/</guid>
		<description><![CDATA[What a great idea - will give this a bash next week&#8230; If you want a somewhat pretty picture of your DBIC schema (with relationships drawn, of course), install GraphViz, SQL::Translator, and DBICx::Deploy from the CPAN, and then run: $ &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fvisualizing-your-dbic-schema&#38;seed_title=Visualizing+Your+DBIC%26%23160%3BSchema">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>What a great idea - will give this a bash next week&#8230;</p>

<blockquote>
  <p>If you want a somewhat pretty picture of your DBIC schema (with relationships drawn, of course), install GraphViz, SQL::Translator, and DBICx::Deploy from the CPAN, and then run:</p>
  
  <p><code>$ dbicdeploy -Ilib MyApp::Schema ~/graphs GraphViz</code></p>
  
  <p>~/graphs will then contain a .sql file that is actually a png of your schema. Rename it and see your schema in your favorite png viewing application.</p>
</blockquote>

<p><a href="http://blog.jrock.us/articles/Visualizing%20your%20DBIC%20schema.pod" class="via">via</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fvisualizing-your-dbic-schema&amp;seed_title=Visualizing+Your+DBIC%26%23160%3BSchema/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 4.X to Oracle&#160;Notes</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fmysql-4x-to-oracle-notes&amp;seed_title=MySQL+4.X+to+Oracle%26%23160%3BNotes</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fmysql-4x-to-oracle-notes&amp;seed_title=MySQL+4.X+to+Oracle%26%23160%3BNotes#comments</comments>
		<pubDate>Thu, 11 Oct 2007 17:12:45 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2007/10/11/mysql-4x-to-oracle-notes/</guid>
		<description><![CDATA[Stumbled across this useful page full of examples and notes on how MySQL 4.x and Oracle differ, and how you can avoid complications if you want to migrate a database between the two&#8230; About once a year I need to &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fmysql-4x-to-oracle-notes&#38;seed_title=MySQL+4.X+to+Oracle%26%23160%3BNotes">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Stumbled across this useful page full of examples and notes on how MySQL 4.x and Oracle differ, and how you can avoid complications if you want to migrate a database between the two&#8230;</p>

<blockquote>
  <p>About once a year I need to migrate a medium-sized web application using MySQL to Oracle.</p>
  
  <p>Usually itâ€™s to prepare a successful intranet application for a move to a formally supported production environment - and in Silicon Valley, that usually means Oracle.</p>
  
  <p>I was apologizing to Monty at OSCON this year about my latest migration project away from MySQL.</p>
  
  <p>His surprising response was, &#8220;Itâ€™s not a bad thing. I donâ€™t mind hearing about conversions because successful migrations demonstrate that people donâ€™t have to worry about database lock-in.&#8221;</p>
  
  <p>Hereâ€™s some notes on doing migrations.</p>
</blockquote>

<p><a href="http://www.jebriggs.com/blog/oscon/mysql-4x-to-oracle-10g-migration-notes.html" class="via">read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fmysql-4x-to-oracle-notes&amp;seed_title=MySQL+4.X+to+Oracle%26%23160%3BNotes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto-Increment ID&#8217;s in&#160;Oracle</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fauto-increment-ids-in-oracle&amp;seed_title=Auto-Increment+ID%26%238217%3Bs+in%26%23160%3BOracle</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fauto-increment-ids-in-oracle&amp;seed_title=Auto-Increment+ID%26%238217%3Bs+in%26%23160%3BOracle#comments</comments>
		<pubDate>Thu, 04 Oct 2007 11:39:06 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[noteworthy]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/2007/10/04/auto-increment-ids-in-oracle/</guid>
		<description><![CDATA[This is old news to most people who have been using Oracle for a while, but to me this is something new that I learnt today. How to have MySQL like &#8220;auto-increment&#8221; id&#8217;s for your tables in Oracle. Here&#8217;s an &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fauto-increment-ids-in-oracle&#38;seed_title=Auto-Increment+ID%26%238217%3Bs+in%26%23160%3BOracle">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is old news to most people who have been using Oracle for a while, but to me this is something new that I learnt today.  How to have MySQL like &#8220;auto-increment&#8221; id&#8217;s for your tables in Oracle. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' />  Here&#8217;s an example&#8230;</p>

<p><span id="more-22"></span></p>

<p>First we need to create a sequence for the ID&#8217;s:</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> SEQUENCE <span style="color: #ff0000;">&quot;S_COMMENT_ID&quot;</span>
START <span style="color: #993333; font-weight: bold;">WITH</span> <span style="color: #cc66cc;">1</span>
INCREMENT <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #cc66cc;">1</span>
CACHE <span style="color: #cc66cc;">10</span>;</pre></td></tr></table></div>


<p>Then we create the table and the required trigger:</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">&quot;COMMENT&quot;</span> <span style="color: #66cc66;">&#40;</span>
  <span style="color: #ff0000;">&quot;COMMENT_ID&quot;</span> NUMBER<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span> 
  <span style="color: #ff0000;">&quot;COMMENT_BODY&quot;</span> VARCHAR2<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> 
  <span style="color: #ff0000;">&quot;USER&quot;</span> VARCHAR2<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> 
  <span style="color: #ff0000;">&quot;CREATED_DATE&quot;</span> DATE<span style="color: #66cc66;">,</span> 
  CONSTRAINT <span style="color: #ff0000;">&quot;PK_COMMENT&quot;</span> <span style="color: #993333; font-weight: bold;">PRIMARY</span> <span style="color: #993333; font-weight: bold;">KEY</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;COMMENT_ID&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #993333; font-weight: bold;">REPLACE</span> <span style="color: #993333; font-weight: bold;">TRIGGER</span> <span style="color: #ff0000;">&quot;TR_COMMENT_ID&quot;</span> 
BEFORE <span style="color: #993333; font-weight: bold;">INSERT</span> 
<span style="color: #993333; font-weight: bold;">ON</span> COMMENT 
REFERENCING NEW <span style="color: #993333; font-weight: bold;">AS</span> NEW OLD <span style="color: #993333; font-weight: bold;">AS</span> OLD 
<span style="color: #993333; font-weight: bold;">FOR</span> EACH ROW 
BEGIN 
  <span style="color: #993333; font-weight: bold;">IF</span><span style="color: #66cc66;">&#40;</span>:new<span style="color: #66cc66;">.</span>comment_id <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span> then 
  <span style="color: #993333; font-weight: bold;">SELECT</span> S_COMMENT_ID<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">NEXTVAL</span> 
  <span style="color: #993333; font-weight: bold;">INTO</span> :new<span style="color: #66cc66;">.</span>COMMENT_ID 
  <span style="color: #993333; font-weight: bold;">FROM</span> dual; 
  end <span style="color: #993333; font-weight: bold;">IF</span>; 
END;
<span style="color: #66cc66;">/</span>
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TRIGGER</span> <span style="color: #ff0000;">&quot;TR_COMMENT_ID&quot;</span> ENABLE;</pre></td></tr></table></div>


<p>And there you go - an auto-incrementing primary key&#8230;  Damn that&#8217;s a lot more code to write than a simple &#8216;auto-increment&#8217;.</p>

<p><em>Edit:</em> An alternative when using <a href="http://www.oracle.com/technology/software/products/sql/index.html">SQL Developer</a> is to create your table, select it, then go to the &#8216;Triggers&#8217; tab.  In there you will find a useful &#8216;Actions&#8230;&#8217; button where you can create a new trigger linking your tables primary key to a sequence.</p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2007%2F10%2Fauto-increment-ids-in-oracle&amp;seed_title=Auto-Increment+ID%26%238217%3Bs+in%26%23160%3BOracle/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</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! -->