<?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>Cristian Radulescu &#187; MySQL</title> <atom:link href="http://cristian-radulescu.ro/category/programming/mysql/feed" rel="self" type="application/rss+xml" /><link>http://cristian-radulescu.ro</link> <description>PHP // MySql // Linux // Android</description> <lastBuildDate>Sun, 13 May 2012 10:24:43 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Display random posts in WordPress</title><link>http://cristian-radulescu.ro/article/display-random-posts-in-wordpress.html</link> <comments>http://cristian-radulescu.ro/article/display-random-posts-in-wordpress.html#comments</comments> <pubDate>Thu, 25 Aug 2011 12:30:50 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress plugins]]></category> <category><![CDATA[WordPress tips]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=303</guid> <description><![CDATA[WordPress posts may be randomly displayed using the "Get random results from a MySql table" tip placed in a simple plugin. What this plugin does is to simply ad the "RAND()" value to "ORDER BY" clause in the sql query which retrieves the WordPress posts.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/display-random-posts-in-wordpress.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/display-random-posts-in-wordpress.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Get random results from a MySql table</title><link>http://cristian-radulescu.ro/article/get-random-results-from-a-mysql-table.html</link> <comments>http://cristian-radulescu.ro/article/get-random-results-from-a-mysql-table.html#comments</comments> <pubDate>Sat, 20 Aug 2011 11:52:50 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[MySQL]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[mysql random results]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=292</guid> <description><![CDATA[It is possible to retrieve random results from a MySql table using the RAND() mathematical function. In order to get the random results the RAND() function needs to be used in the ORDER BY clause.<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/get-random-results-from-a-mysql-table.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/get-random-results-from-a-mysql-table.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Insert value &#8220;0&#8243; for primary keys with auto increment in MySQL</title><link>http://cristian-radulescu.ro/article/insert-value-0-for-primary-keys-with-auto-increment-in-mysql.html</link> <comments>http://cristian-radulescu.ro/article/insert-value-0-for-primary-keys-with-auto-increment-in-mysql.html#comments</comments> <pubDate>Sun, 12 Jul 2009 20:11:37 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[MySQL]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[development]]></category> <category><![CDATA[primary key]]></category> <category><![CDATA[snippets]]></category> <category><![CDATA[tips and tricks]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=134</guid> <description><![CDATA[In order to insert value 0 in a field that is set as primary key for a MySQL table you need to execute the following query prior to any insert query: SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/insert-value-0-for-primary-keys-with-auto-increment-in-mysql.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/insert-value-0-for-primary-keys-with-auto-increment-in-mysql.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Disable foreign key checks in MySQL</title><link>http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html</link> <comments>http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html#comments</comments> <pubDate>Mon, 24 Nov 2008 20:47:44 +0000</pubDate> <dc:creator>Cristian Radulescu</dc:creator> <category><![CDATA[MySQL]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[development]]></category> <category><![CDATA[foreign key checks]]></category><guid isPermaLink="false">http://cristian-radulescu.ro/?p=104</guid> <description><![CDATA[Disabling foreign key checks in MySQL is usefull when you are dealing with tables that use foreign keys (InnoDB engine).<span class="more-link-wrapper"><a href="http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html" class="more-link">Continue reading <span class="meta-nav">&#8594;</span></a></span>]]></description> <wfw:commentRss>http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
<!-- Served from: cristian-radulescu.ro @ 2012-05-19 23:27:13 by W3 Total Cache -->
