<?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>Tech-Recipes &#187; MySQL</title>
	<atom:link href="http://www.tech-recipes.com/category/database/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:32:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySQL: How to get row number order</title>
		<link>http://www.tech-recipes.com/rx/17470/mysql-how-to-get-row-number-order-5/</link>
		<comments>http://www.tech-recipes.com/rx/17470/mysql-how-to-get-row-number-order-5/#comments</comments>
		<pubDate>Sat, 01 Oct 2011 10:52:29 +0000</pubDate>
		<dc:creator>Vishwanath Dalvi</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[row number]]></category>

		<guid isPermaLink="false">http://www.tech-recipes.com/?p=17470</guid>
		<description><![CDATA[These directions walk through how one can displaying the row number order/rank for result set obtained from executing a sql query. An example with walkthrough explanation is provided.

Let&#8217;s walk through an example.  
First, let&#8217;s create an employee table in our db.
Query 1.1  
mysql&#62; create table employee (id smallint(5),
name varchar(15),salary smallint(5));
Next, insert records into [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/17470/mysql-how-to-get-row-number-order-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import CSV file directly into MySQL</title>
		<link>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/</link>
		<comments>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/#comments</comments>
		<pubDate>Tue, 08 May 2007 09:02:38 +0000</pubDate>
		<dc:creator>katy8439</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[import]]></category>

		<guid isPermaLink="false">guid-fix-me!</guid>
		<description><![CDATA[Instead of writing a script to pull in information from a CSV file, you can link MYSQL directly to it and upload the information using the following SQL syntax.

To import an Excel file into MySQL, first export it as a CSV file. Remove the CSV headers from the generated CSV file along with empty data [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/2345/import_csv_file_directly_into_mysql/feed/</wfw:commentRss>
		<slash:comments>80</slash:comments>
		</item>
		<item>
		<title>MySQL: Increment an exisitng value</title>
		<link>http://www.tech-recipes.com/rx/2139/mysql_increment_an_exisitng_value/</link>
		<comments>http://www.tech-recipes.com/rx/2139/mysql_increment_an_exisitng_value/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 12:20:22 +0000</pubDate>
		<dc:creator>qmchenry</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[increment]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">guid-fix-me!</guid>
		<description><![CDATA[This slick MySQL syntax allows you to increment or decrement an existing number in a table without first having to read the value. This is a nice way to increment an access counter. 

To increment the value &#8216;counter&#8217; by one for the row in table &#8216;images&#8217; where &#8216;image_id&#8217; is &#8216;15&#8242;, use:
UPDATE images SET counter=counter+1 WHERE [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/2139/mysql_increment_an_exisitng_value/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>MySQL: Use CONCAT to include text in SELECT results</title>
		<link>http://www.tech-recipes.com/rx/2059/mysql_use_concat_to_include_text_in_select_results/</link>
		<comments>http://www.tech-recipes.com/rx/2059/mysql_use_concat_to_include_text_in_select_results/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 13:03:09 +0000</pubDate>
		<dc:creator>qmchenry</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[concat]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[results]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">guid-fix-me!</guid>
		<description><![CDATA[The CONCAT function in MySQL allows SELECT statements to act like printf commands by mingling text and query results together.

For example, to generate a quick list of links in HTML from a table &#8216;links&#8217; with the columns &#8216;url&#8217; (http://www.tech-recipes.com) and &#8216;title&#8217; (Tech-Recipes) so that the output looks like:
Tech-Recipes
use a select statement like:
SELECT CONCAT('&#60;a href="', url, [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/2059/mysql_use_concat_to_include_text_in_select_results/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Copy an existing MySQL table to a new table</title>
		<link>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/</link>
		<comments>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/#comments</comments>
		<pubDate>Tue, 04 Jul 2006 13:09:33 +0000</pubDate>
		<dc:creator>qmchenry</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[existing]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">guid-fix-me!</guid>
		<description><![CDATA[This is a great set of two commands that allow the creation and population of a new table with the structure and data of an existing table.  This provides a quick means of making a point-in-time copy of a table and is a safe, easy way to make a quick copy of a table [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/1487/copy-an-existing-mysql-table-to-a-new-table/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Rename or change name of MySQL table</title>
		<link>http://www.tech-recipes.com/rx/1486/rename-or-change-name-of-mysql-table/</link>
		<comments>http://www.tech-recipes.com/rx/1486/rename-or-change-name-of-mysql-table/#comments</comments>
		<pubDate>Tue, 04 Jul 2006 12:35:15 +0000</pubDate>
		<dc:creator>qmchenry</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[change name]]></category>
		<category><![CDATA[rename]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">guid-fix-me!</guid>
		<description><![CDATA[If you change your mind and want to rename an existing MySQL table, with or without data in it, it is no problem.  One simple command will change the table&#8217;s name.

To change the name of an existing table first to second, use this command as a user with adequate privileges:
RENAME TABLE first TO second;

It [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/1486/rename-or-change-name-of-mysql-table/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Ignore duplicate entries in MySQL select using DISTINCT keyword</title>
		<link>http://www.tech-recipes.com/rx/1481/ignore-duplicate-entries-in-mysql-select-using-distinct-keyword/</link>
		<comments>http://www.tech-recipes.com/rx/1481/ignore-duplicate-entries-in-mysql-select-using-distinct-keyword/#comments</comments>
		<pubDate>Mon, 03 Jul 2006 18:34:19 +0000</pubDate>
		<dc:creator>qmchenry</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[distinct]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[ignore]]></category>
		<category><![CDATA[keyword]]></category>

		<guid isPermaLink="false">guid-fix-me!</guid>
		<description><![CDATA[Sometimes every occurance of a value which may be duplicated multiple times in a result set is not needed.  For example, if making a pulldown menu list of options, each option should be seen only once.  The DISTINCT keyword in a select statement eliminates duplication in the result set.

The column party from the [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/1481/ignore-duplicate-entries-in-mysql-select-using-distinct-keyword/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Save MySQL query results into a text or CSV file</title>
		<link>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/</link>
		<comments>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/#comments</comments>
		<pubDate>Wed, 28 Jun 2006 17:43:47 +0000</pubDate>
		<dc:creator>qmchenry</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[results]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">guid-fix-me!</guid>
		<description><![CDATA[MySQL provides an easy mechanism for writing the results of a select statement into a text file on the server.  Using extended options of the INTO OUTFILE nomenclature, it is possible to create a comma separated value (CSV) which can be imported into a spreadsheet application such as OpenOffice or Excel or any other [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Get MySQL date in RFC-822 format for RSS feeds</title>
		<link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/</link>
		<comments>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/#comments</comments>
		<pubDate>Mon, 19 Jun 2006 15:12:50 +0000</pubDate>
		<dc:creator>qmchenry</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[rfc-822]]></category>
		<category><![CDATA[rss feeds]]></category>

		<guid isPermaLink="false">guid-fix-me!</guid>
		<description><![CDATA[To get the PubDate element of an RSS feed to validate, it needs to be in RFC-822 format.  MySQL has flexible ways of working with dates and times which make this a simple task.  

Given a datetime column called pubdate, this select statement (which can be combined with other selections) will yield a [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Show or list tables in a MySQL database</title>
		<link>http://www.tech-recipes.com/rx/836/show-or-list-tables-in-a-mysql-database/</link>
		<comments>http://www.tech-recipes.com/rx/836/show-or-list-tables-in-a-mysql-database/#comments</comments>
		<pubDate>Tue, 22 Feb 2005 14:41:34 +0000</pubDate>
		<dc:creator>webgod</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">guid-fix-me!</guid>
		<description><![CDATA[Once you have selected a database, you can list the tables in it by using the show command.


To view all of the tables in the selected database, use:
SHOW TABLES;
[code]
To view all of the tables in a different database that isn't selected:
[code]SHOW TABLES IN other_database;

If you are looking for a specific table but don't remember it's [...]]]></description>
		<wfw:commentRss>http://www.tech-recipes.com/rx/836/show-or-list-tables-in-a-mysql-database/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 3/15 queries in 1.181 seconds using memcached
Object Caching 628/705 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-09 23:45:35 -->
