<?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</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 18:09:37 GMT</pubDate>
<item>
<title>(MySQL) Remote DB query - jtjiver</title>
<link>http://snipplr.com/view/71300/remote-db-query/</link>
<description><![CDATA[ <p>when runinng the remote query, the .sql file contanis the following SQL sommand on one line per channel

SELECT  timestamp as 'Unix Time', IFNULL(value,0) AS 'SYSTEM.DEF.RECEIVER' FROM mq_numeric_table INNER JOIN var_ref_table ON varname = '%channelstatus.SYSTEM.DEF.RECEIVER.messagecount' AND ref = mq_numeric_table.var_ref WHERE timestamp BETWEEN 1343775600 AND 1346453999 ORDER BY timestamp ASC;</p> ]]></description>
<pubDate>Fri, 24 May 2013 17:44:24 GMT</pubDate>
<guid>http://snipplr.com/view/71300/remote-db-query/</guid>
</item>
<item>
<title>(MySQL) Derive Age of a MySQL tuple in minutes - koguee</title>
<link>http://snipplr.com/view/71261/derive-age-of-a-mysql-tuple-in-minutes/</link>
<description><![CDATA[ <p>Say you want to add on a mysql_fetch_assoc the age of a post or the tuple in minutes, use this.</p> ]]></description>
<pubDate>Wed, 22 May 2013 11:53:42 GMT</pubDate>
<guid>http://snipplr.com/view/71261/derive-age-of-a-mysql-tuple-in-minutes/</guid>
</item>
<item>
<title>(MySQL) author_id update - davidbdehaan</title>
<link>http://snipplr.com/view/71132/authorid-update/</link>
<description><![CDATA[ <p>update qry</p> ]]></description>
<pubDate>Sat, 11 May 2013 04:18:19 GMT</pubDate>
<guid>http://snipplr.com/view/71132/authorid-update/</guid>
</item>
<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) Delete duplicate records in MySQL database - bluecap</title>
<link>http://snipplr.com/view/67744/delete-duplicate-records-in-mysql-database/</link>
<description><![CDATA[ <p>Compare a table against itself to remove records where column value(s) are identical.</p> ]]></description>
<pubDate>Mon, 15 Oct 2012 13:34:59 GMT</pubDate>
<guid>http://snipplr.com/view/67744/delete-duplicate-records-in-mysql-database/</guid>
</item>
<item>
<title>(MySQL) Delete duplicate records from MySQL Database - welancers</title>
<link>http://snipplr.com/view/67709/delete-duplicate-records-from-mysql-database/</link>
<description><![CDATA[ <p>Use the same table to query against itself. The greater then sign does the main job of returning only one records of both duplicate records.</p> ]]></description>
<pubDate>Fri, 12 Oct 2012 22:45:47 GMT</pubDate>
<guid>http://snipplr.com/view/67709/delete-duplicate-records-from-mysql-database/</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) Insert into mysql from csv file - kirkfortune</title>
<link>http://snipplr.com/view/66904/insert-into-mysql-from-csv-file/</link>
<description><![CDATA[ <p>ensure the url to the csv file is in the root of your file system (eg: C:/mycsvfile.csv)</p> ]]></description>
<pubDate>Sun, 26 Aug 2012 06:00:25 GMT</pubDate>
<guid>http://snipplr.com/view/66904/insert-into-mysql-from-csv-file/</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) Add info to mysql table - vdubplate</title>
<link>http://snipplr.com/view/66133/add-info-to-mysql-table/</link>
<description><![CDATA[ <p>$connect = mysql_connect("localhost:8889","root","root");

Means: server, user, pass</p> ]]></description>
<pubDate>Sat, 14 Jul 2012 02:31:06 GMT</pubDate>
<guid>http://snipplr.com/view/66133/add-info-to-mysql-table/</guid>
</item>
<item>
<title>(MySQL) Pull from MySQL and display from table - vdubplate</title>
<link>http://snipplr.com/view/66132/pull-from-mysql-and-display-from-table/</link>
<description><![CDATA[ <p>$connect = mysql_connect("localhost:8889", "root", "root");

This means you need your host, user, pass</p> ]]></description>
<pubDate>Sat, 14 Jul 2012 02:13:11 GMT</pubDate>
<guid>http://snipplr.com/view/66132/pull-from-mysql-and-display-from-table/</guid>
</item>
<item>
<title>(MySQL) MySQL Time Ago function - Jamie</title>
<link>http://snipplr.com/view/65651/mysql-time-ago-function/</link>
<description><![CDATA[ <p>Retrieves a relative time in a MySQL Query</p> ]]></description>
<pubDate>Sat, 16 Jun 2012 00:56:15 GMT</pubDate>
<guid>http://snipplr.com/view/65651/mysql-time-ago-function/</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>
</channel>
</rss>