<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/mysql/tags/mysql</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 10:44:40 GMT</pubDate>
<item>
<title>(MySQL) La fonction COALESCE de MySQL permet de renvoyer une valeur par défaut si la valeur null est renvoyée initialement. - pruntrut</title>
<link>http://snipplr.com/view/69692/la-fonction-coalesce-de-mysql-permet-de-renvoyer-une-valeur-par-dfaut-si-la-valeur-null-est-renvoye-initialement/</link>
<description><![CDATA[ <p>Le fonction COALESCE de MySQL permet de renvoyer une valeur par défaut si la valeur null est renvoyée initialement.</p> ]]></description>
<pubDate>Tue, 29 Jan 2013 20:53:55 GMT</pubDate>
<guid>http://snipplr.com/view/69692/la-fonction-coalesce-de-mysql-permet-de-renvoyer-une-valeur-par-dfaut-si-la-valeur-null-est-renvoye-initialement/</guid>
</item>
<item>
<title>(MySQL) [MySQL] Add condition to Virutal Fields - tucq88</title>
<link>http://snipplr.com/view/69409/mysql-add-condition-to-virutal-fields/</link>
<description><![CDATA[ <p>By using HAVING 'virtual_field' CONDITION we can add conditions to virtual fields that created at SELECT</p> ]]></description>
<pubDate>Thu, 10 Jan 2013 13:50:19 GMT</pubDate>
<guid>http://snipplr.com/view/69409/mysql-add-condition-to-virutal-fields/</guid>
</item>
<item>
<title>(MySQL) What MySQL Table Has What Column - philsown</title>
<link>http://snipplr.com/view/68577/what-mysql-table-has-what-column/</link>
<description><![CDATA[ <p>How to find a given column in a given database in MySQL</p> ]]></description>
<pubDate>Fri, 16 Nov 2012 00:50:08 GMT</pubDate>
<guid>http://snipplr.com/view/68577/what-mysql-table-has-what-column/</guid>
</item>
<item>
<title>(MySQL) create new database - claudiodev</title>
<link>http://snipplr.com/view/67867/create-new-database/</link>
<description><![CDATA[ <p>Create a new database and its respective user with all privileges</p> ]]></description>
<pubDate>Mon, 22 Oct 2012 21:45:32 GMT</pubDate>
<guid>http://snipplr.com/view/67867/create-new-database/</guid>
</item>
<item>
<title>(MySQL) Remap values inside a MYSQL query using CASE...WHEN syntax - ginoplusio</title>
<link>http://snipplr.com/view/67831/remap-values-inside-a-mysql-query-using-casewhen-syntax/</link>
<description><![CDATA[ <p>How to remap a value to another inside a mysql query select.</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 08:14:57 GMT</pubDate>
<guid>http://snipplr.com/view/67831/remap-values-inside-a-mysql-query-using-casewhen-syntax/</guid>
</item>
<item>
<title>(MySQL) MySQL - Simulate MySQL Queries - satie83</title>
<link>http://snipplr.com/view/67272/mysql--simulate-mysql-queries/</link>
<description><![CDATA[ <p>You could start a transaction before running your queries and then rollback after running them. Note that to do this you'll require InnoDB or XtraDb tables (won't work on MyISAM).</p> ]]></description>
<pubDate>Thu, 20 Sep 2012 20:29:21 GMT</pubDate>
<guid>http://snipplr.com/view/67272/mysql--simulate-mysql-queries/</guid>
</item>
<item>
<title>(MySQL) Pivot table Schedule - cahyadsn</title>
<link>http://snipplr.com/view/66323/pivot-table-schedule/</link>
<description><![CDATA[ <p>You have a schedule table (period, day, subject, room) with a primary key period,day to avoid duplicate bookings. You wish to display the schedule as periods, subjects and rooms in rows, and days of the week in columns.</p> ]]></description>
<pubDate>Wed, 25 Jul 2012 13:43:46 GMT</pubDate>
<guid>http://snipplr.com/view/66323/pivot-table-schedule/</guid>
</item>
<item>
<title>(MySQL) Age in Years for Given Birthdate - cahyadsn</title>
<link>http://snipplr.com/view/66321/age-in-years-for-given-birthdate/</link>
<description><![CDATA[ <p>Given a birthdate in @dob, here are two simple formulae for age in years :
(the second formulae is for age in years to two decimal places, ignoring day of month)</p> ]]></description>
<pubDate>Wed, 25 Jul 2012 13:31:22 GMT</pubDate>
<guid>http://snipplr.com/view/66321/age-in-years-for-given-birthdate/</guid>
</item>
<item>
<title>(MySQL) MySQL Select duplicates - TheNullByte</title>
<link>http://snipplr.com/view/65582/mysql-select-duplicates/</link>
<description><![CDATA[ <p>Instead of the standard return of duplicates, this will actually show the rows that are duplicated, making it easier to see the data</p> ]]></description>
<pubDate>Wed, 13 Jun 2012 03:02:48 GMT</pubDate>
<guid>http://snipplr.com/view/65582/mysql-select-duplicates/</guid>
</item>
<item>
<title>(MySQL) mysql create modify default timestamp - navblue</title>
<link>http://snipplr.com/view/64788/mysql-create-modify-default-timestamp/</link>
<description><![CDATA[ <p>add created datetime and modified timestamp columns to table</p> ]]></description>
<pubDate>Fri, 04 May 2012 04:34:27 GMT</pubDate>
<guid>http://snipplr.com/view/64788/mysql-create-modify-default-timestamp/</guid>
</item>
<item>
<title>(MySQL) Copy an SQL Table - imbraz</title>
<link>http://snipplr.com/view/64782/copy-an-sql-table/</link>
<description><![CDATA[ <p>Create a new table from the details of another table then insert the table contents</p> ]]></description>
<pubDate>Wed, 02 May 2012 22:41:45 GMT</pubDate>
<guid>http://snipplr.com/view/64782/copy-an-sql-table/</guid>
</item>
<item>
<title>(MySQL) Users Sharing between multiple Joomla 2.5.x sites - A973C</title>
<link>http://snipplr.com/view/64284/users-sharing-between-multiple-joomla-25x-sites/</link>
<description><![CDATA[ <p>xxxx1... are tables from master site
xxxx2... are tables from client site</p> ]]></description>
<pubDate>Mon, 02 Apr 2012 13:49:54 GMT</pubDate>
<guid>http://snipplr.com/view/64284/users-sharing-between-multiple-joomla-25x-sites/</guid>
</item>
<item>
<title>(MySQL) UPDATE table using JOINS - jgomez</title>
<link>http://snipplr.com/view/64223/update-table-using-joins/</link>
<description><![CDATA[ <p>Update an empty name column in default_comments</p> ]]></description>
<pubDate>Fri, 30 Mar 2012 00:47:33 GMT</pubDate>
<guid>http://snipplr.com/view/64223/update-table-using-joins/</guid>
</item>
<item>
<title>(MySQL) Find and Replace MySQL column with substring - jgomez</title>
<link>http://snipplr.com/view/64199/find-and-replace-mysql-column-with-substring/</link>
<description><![CDATA[ <p>Example: There is a table, 'user', with a column, 'clear', containing values such as: 

`clear
--------
\'animal\'
\'pass'\
`

and we would like to retrieve 'animal' and 'pass' ( without the pre &amp; post \' )</p> ]]></description>
<pubDate>Wed, 28 Mar 2012 22:00:49 GMT</pubDate>
<guid>http://snipplr.com/view/64199/find-and-replace-mysql-column-with-substring/</guid>
</item>
<item>
<title>(MySQL) Wordpress Display Recent Authors of Posts - ninacess</title>
<link>http://snipplr.com/view/62967/wordpress-display-recent-authors-of-posts/</link>
<description><![CDATA[ <p>Select wp_users and wp_posts to retrieve data from both tables in order to display post title, post date, author name with gravatar (gravatar isn't listed in this code)
Note: probably not idea solution, but it's one of many fixes</p> ]]></description>
<pubDate>Wed, 01 Feb 2012 09:55:39 GMT</pubDate>
<guid>http://snipplr.com/view/62967/wordpress-display-recent-authors-of-posts/</guid>
</item>
<item>
<title>(MySQL) Languages table - Synnoid</title>
<link>http://snipplr.com/view/61741/languages-table/</link>
<description><![CDATA[ <p>Most popular languages on the web table (in order of popularity). 
Handy for auto complete fields and such.</p> ]]></description>
<pubDate>Thu, 08 Dec 2011 20:38:40 GMT</pubDate>
<guid>http://snipplr.com/view/61741/languages-table/</guid>
</item>
<item>
<title>(MySQL) MYSQL search and replace - irishsk</title>
<link>http://snipplr.com/view/61012/mysql-search-and-replace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 21 Nov 2011 03:14:28 GMT</pubDate>
<guid>http://snipplr.com/view/61012/mysql-search-and-replace/</guid>
</item>
<item>
<title>(MySQL) MySQL Data Pull to Localhost - nedf23</title>
<link>http://snipplr.com/view/60351/mysql-data-pull-to-localhost/</link>
<description><![CDATA[ <p>What it does
This snippet is used to pull data from one server to another.  I primarily use it to get the latest data from our production to our development environments.  The first part of the command is where the data is pulling from and the part after the "|" is where it is going to.  In this case, it's localhost.

How to use it
Run from command prompt or terminal.  Replace brackets with values.</p> ]]></description>
<pubDate>Sun, 30 Oct 2011 17:19:22 GMT</pubDate>
<guid>http://snipplr.com/view/60351/mysql-data-pull-to-localhost/</guid>
</item>
<item>
<title>(MySQL) US &amp;amp; CANADA Cities Database - frederichoule</title>
<link>http://snipplr.com/view/60075/us--canada-cities-database/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 22 Oct 2011 12:36:31 GMT</pubDate>
<guid>http://snipplr.com/view/60075/us--canada-cities-database/</guid>
</item>
<item>
<title>(MySQL) Average discount in magento 1.4.1 - simsevu</title>
<link>http://snipplr.com/view/60000/average-discount-in-magento-141/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 Oct 2011 19:20:56 GMT</pubDate>
<guid>http://snipplr.com/view/60000/average-discount-in-magento-141/</guid>
</item>
</channel>
</rss>