<?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>The Filipino Programmer &#187; Database</title>
	<atom:link href="http://www.cybervaldez.com/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cybervaldez.com</link>
	<description></description>
	<lastBuildDate>Wed, 26 Oct 2011 08:05:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>mySQL Super-tip! How to comma-delimit or comma-separate your query results!</title>
		<link>http://www.cybervaldez.com/mysql-super-tip-how-to-comma-delimit-or-comma-separate-your-query-results/2010/</link>
		<comments>http://www.cybervaldez.com/mysql-super-tip-how-to-comma-delimit-or-comma-separate-your-query-results/2010/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 20:49:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[comma]]></category>
		<category><![CDATA[comma delimit]]></category>
		<category><![CDATA[comma separate]]></category>
		<category><![CDATA[concat]]></category>
		<category><![CDATA[delimit]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[group concatenation]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[separate]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1244</guid>
		<description><![CDATA[_Problem_: Help! I&#8217;d like to make it so my query results to be a comma delimited format! _Answer_: No problemo! Simply use mySQL&#8217;s group_concat function and you&#8217;ll get your results in comma delimited values! SELECT GROUP_CONCAT(id) FROM users WHERE authenticated=1 ORDER BY NULL LIMIT 1 Note: (Optional) ORDER BY NULL is used to prevent unnecessary [...]]]></description>
			<content:encoded><![CDATA[<p><strong>_Problem_</strong>: Help! I&#8217;d like to make it so my query results to be a comma delimited format!</p>

<p><strong>_Answer_</strong>: No problemo! Simply use mySQL&#8217;s group_concat function and you&#8217;ll get your results in comma delimited values!</p>

<blockquote>SELECT GROUP_CONCAT(id) FROM users WHERE authenticated=1 ORDER BY NULL LIMIT 1

Note: (Optional) ORDER BY NULL is used to prevent unnecessary sorting with filesort</blockquote>

<p>This query would result to:
1,3,4,6,11</p>

<p><strong>That&#8217;s It!</strong>  This is pretty useful when you are going to use the <a href="http://www.cybervaldez.com/mysql-simplify-your-multiple-where-queries-with-where-in/2010/">SELECT&#8230; IN</a> statement for your subqueries.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/mysql-super-tip-how-to-comma-delimit-or-comma-separate-your-query-results/2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mySQL Super-tip! Use LIMIT and OFFSET to paginate your SELECT statements!</title>
		<link>http://www.cybervaldez.com/mysql-super-tip-use-limit-and-offset-to-paginate-your-select-statements/2010/</link>
		<comments>http://www.cybervaldez.com/mysql-super-tip-use-limit-and-offset-to-paginate-your-select-statements/2010/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 20:51:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Super Tip!]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1236</guid>
		<description><![CDATA[Awesome, it seems that mySQL now supports the OFFSET clause. This is very useful for paginating your SQL statements. The following will return the first 10 entries of your select statement: &#8220;SELECT field FROM table LIMIT 10&#8243; This, on the otherhand, will OFFSET your result by 10, selecting your entries #10-20: &#8220;SELECT field FROM table [...]]]></description>
			<content:encoded><![CDATA[<p>Awesome, it seems that mySQL now supports the OFFSET clause.</p>

<p>This is very useful for paginating your SQL statements.</p>

<p>The following will return the first 10 entries of your select statement:</p>

<blockquote>&#8220;SELECT field FROM table LIMIT 10&#8243;</blockquote>

<p>This, on the otherhand, will OFFSET your result by 10, selecting your entries #10-20:</p>

<blockquote>&#8220;SELECT field FROM table LIMIT 10 OFFSET 10&#8243;</blockquote>

<p>Here&#8217;s an example of how to capture entries #10-30:</p>

<blockquote>&#8220;SELECT field FROM table LIMIT 20 OFFSET 10&#8243;</blockquote>

<p>Things just keeps on getting easier and easier!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/mysql-super-tip-use-limit-and-offset-to-paginate-your-select-statements/2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A MySQL query to find &amp; replace text in your database</title>
		<link>http://www.cybervaldez.com/super-tip-a-mysql-query-to-find-replace-text-in-your-database/2009/</link>
		<comments>http://www.cybervaldez.com/super-tip-a-mysql-query-to-find-replace-text-in-your-database/2009/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 18:11:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[old]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1087</guid>
		<description><![CDATA[Help! I need to replace some words with something else in my database.]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> Help! I need to replace some words with something else in my database.</p>

<p><strong>Solution:</strong> Use the replace() function to do a search and replace query.</p>

<blockquote>UPDATE table_name SET 
table_field=REPLACE(table_field,&quot;old_text&quot;,&quot;new_text&quot;);</blockquote>

<p>Here&#8217;s an example:</p>

<blockquote>UPDATE wp_posts SET 
post_content=REPLACE(post_content,&quot;localhost&quot;,&quot;www.cybervaldez.com&quot;);</blockquote>

<p>Easy as pie!</p>

<p><a href="http://www.stumbleupon.com/submit?url=http://www.cybervaldez.com/super-tip-a-mysql-query-to-find-replace-text-in-your-database/2009/%26title%3DThe%2BArticle%2BTitle"> <img border=0 src="http://cdn.stumble-upon.com/images/120x20_thumb_black.gif" alt=""></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/super-tip-a-mysql-query-to-find-replace-text-in-your-database/2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Remove those nasty question marks with a diamond symbols that appears in your website</title>
		<link>http://www.cybervaldez.com/how-to-remove-those-nasty-question-mark-with-a-diamond-symbols-from-appearing-in-your-website/2009/</link>
		<comments>http://www.cybervaldez.com/how-to-remove-those-nasty-question-mark-with-a-diamond-symbols-from-appearing-in-your-website/2009/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 22:33:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Super Tip!]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[characters]]></category>
		<category><![CDATA[diamon]]></category>
		<category><![CDATA[diamonds]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[encoded]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[incorrect]]></category>
		<category><![CDATA[mark]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[output]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[special]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[symbol]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[webpage]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[word]]></category>
		<category><![CDATA[wrong]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1069</guid>
		<description><![CDATA[Help! I've pasted some text from Microsoft Word and saved it to my SQL database! Now whenever I output my text there's a bunch of diamonds with a question mark symbols now appearing!]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> Help! I&#8217;ve pasted some text from Microsoft Word and saved it to my SQL database! Now whenever I print my text there&#8217;s a bunch of diamonds with a question mark symbols appearing!</p>

<p><strong>Solution:</strong> You are trying to display characters that are outside your page&#8217;s character set, you have to tell your browser that you need to display characters from the iso-8859-1 set so it will know how to render them correctly.</p>

<p>Simply put the following inside your website&#8217;s &lt;head&gt;&lt;/head&gt;</p>

<blockquote>&lt;META http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;</blockquote>

<p>and in PHP(or any other similar language), simply put this at the top of your page(for other languages, look for an identical function):</p>

<blockquote>&lt;? header(&quot;Content-type: text/html; charset=iso-8859-1&quot;); ?&gt;</blockquote>

<p>and voila! Your characters should now be displayed correctly.</p>

<p><a href="http://www.stumbleupon.com/submit?url=http://www.cybervaldez.com/how-to-remove-those-nasty-question-mark-with-a-diamond-symbols-from-appearing-in-your-website/2009/%26title%3DThe%2BArticle%2BTitle"> <img border=0 src="http://cdn.stumble-upon.com/images/120x20_thumb_black.gif" alt=""></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/how-to-remove-those-nasty-question-mark-with-a-diamond-symbols-from-appearing-in-your-website/2009/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Super Tool: (Probably) the best SQLite Editor/IDE for web development and production use</title>
		<link>http://www.cybervaldez.com/super-tool-probably-the-best-sqlite-editoride-for-development-and-production-use/2009/</link>
		<comments>http://www.cybervaldez.com/super-tool-probably-the-best-sqlite-editoride-for-development-and-production-use/2009/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 18:18:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Super Tool]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[complement]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[footprint]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[great]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[production]]></category>
		<category><![CDATA[small]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1061</guid>
		<description><![CDATA[A great IDE/editor to complement SQLite's small footprint.]]></description>
			<content:encoded><![CDATA[<p>I really <a href="http://www.sqlite.org/">love</a> SQLite. It&#8217;s lightweight and got a really small footprint. I use it as my database initially when i&#8217;m creating web applications(I then move to mySQL during production), the only issue I have is the lack of IDE for working with it. Of course there&#8217;s <a href="http://wzpo1.ask.com/r?t=p&#038;d=mys&#038;s=ads&#038;c=a&#038;l=dis&#038;o=13927&#038;sv=0a5c425b&#038;ip=781c4047&#038;id=E042DFC40D6748CBA41FB6DF6185413F&#038;q=sqlite+administrator&#038;p=1&#038;qs=2873&#038;ac=24&#038;g=0e73O8O5b25qHg&#038;en=te&#038;io=0&#038;ep=&#038;eo=&#038;b=a001&#038;bc=&#038;br=&#038;tp=d&#038;ec=1&#038;pt=SQLite%20Administrator%20-%20International%20Milestone%20Beta&#038;ex=tsrc%3Dvnru&#038;url=&#038;u=http://sqliteadmin.orbmu2k.de/">SQLite Administrator</a>, i&#8217;m just not into the idea of installing a software especially with SQLite being small(I prefer not to cramp up as much software possible in my Windows).</p>

<blockquote>This is where <a href="http://code.google.com/p/sqlite-manager/">sqlite-manager</a> comes along. It&#8217;s a 100kb plugin for Firefox(which also means cross compatibility with other OS), it&#8217;s a great complement to SQLite&#8217;s lightweight and small footprint. If you need to work with the database, you simply fire up sqlite-manager from the Tools menu.</blockquote>

<p>That&#8217;s It!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/super-tool-probably-the-best-sqlite-editoride-for-development-and-production-use/2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

