Subscribe
Twitter Updates
- Fuuuu http://t.co/ItjqQrkT 1 week ago
- RT @phoronix: Cinnamon Fork Of GNOME Shell Is Tasty At v1.2: Cinnamon, the fork of the GNOME 3.x Shell by Linux Mint developer... http:/ ... 1 week ago
- Disable javascript in your browser to skip the #SOPA protest on Wikipedia 2 weeks ago
- Symfony2 and Twig part of NetBeans (NetBeans for PHP) http://t.co/6Ur2QoLX 2 weeks ago
- The Raspberry Pi Computer Is Finally Being Manufactured http://t.co/QJxATfXV 3 weeks ago
Category Archives: MySQL
Display random posts in WordPress
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.Continue reading
Get random results from a MySql table
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.Continue reading
Insert value “0″ for primary keys with auto increment in MySQL
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”;Continue reading
Disable foreign key checks in MySQL
Disabling foreign key checks in MySQL is usefull when you are dealing with tables that use foreign keys (InnoDB engine).Continue reading
