MySQL management, tutorials, scripts, coding, programming and tips for database administrators
Over time, applying the same rounding algorithm to many numbers can lead to a condition known as rounding bias. Rob Gravelle presents some rounding implementations in MySQL that attempt to eliminate (or at least reduce) rounding bias.
Most of us have to take care of a database that we don't know like the back of our hand at some point or another. Should you have to look up a value it helps tremendously to have the capability to perform a database-wide sweep. Rob Gravelle suggests three ways of doing so.
Although MySQL does provide its own Round() function, for those times that it doesn't provide the results that you're looking for, you'll be happy to know that implementing your own rounding function is not all that difficult. Rob Gravelle presents a few to get you started.
One of the tenets of Third Normal Form (3NF) database normalization is that calculations should not be stored in a table. In MySQL, calculations are made easier by a number of built-in functions. In today's article, Rob Gravelle provides an overview of three of the more widely applicable ones.
The MySQL 5.6 memcached plugin for InnoDB uses a daemon that automatically stores and retrieves data from InnoDB tables, without the overhead of SQL. Rob Gravelle goes over some of its uses and benefits.
Robert Gravelle explores the use of cursors and their role in stored procedure programming.
A loop is a programming construct that executes a block of code repeatedly based on a condition. Cursors, on the other hand, are utilized to process each row returned by a SELECT statement. Read on to learn about various loop types supported by MySQL as well as an introduction to cursors.
Ease of use and speedy performance are just two of the many features that make MySQL one of the most popular databases in use today. Unfortunately, a high adoption rate makes MySQL a target for many malicious individuals and organizations. In today's article, Rob Gravelle highlights a few simple but effective ways of beefing up your database security to defend against both local and remote attacks.
One of MySQL 5.6's many optimizations apply to the processing of queries that contain subqueries. These involve transforming a subquery into a semi-join operation, and then treating it like just another join operation for evaluation. Rob Gravelle takes a closer look at the various strategies utilized by the MySQL 5.6 optimizer to achieve this end.
With version 5.5 of MySQL in full production, the LOAD XML statement greatly simplifies the task of importing data from an XML file into a MySQL table, without having to resort to a stored procedure. Rob Gravelle provides a summary of how to use the new LOAD XML statement.
Some good news for MySQL users; version 5.6 includes native full-text support. If you’re not using MySQL, maybe this will be just the impetus you need to make the switch. In today’s article, Rob Gravelle shows you how to take advantage of MySQL 5.6’s Full-text search capabilities.
Rob Gravelle examines some of the challenges in porting your databases between MS SQL Server and MySQL. Today's article shows you how functions may require additional effort on your part to produce equivalent results.
With respect to data types, MySQL and MS SQL Server have some important differences. Chances are that you’ll have to do some mapping to get the correct data when migrating from one to the other. To that end, this article describes the most important data type differences to be aware of between MySQL and SQL Server.