(Michael McLaughlin) After I wrote the post for students on the multiple row MERGE statement for an upload through an external table in Oracle, I thought to check how it might be done with MySQL. More or less because I try to keep track of how things are done in several databases.
Tag: Open Source
MySQL CASE Statements in Multi-Aggregated Crosstab Columns
(Rob Gravelle) Inserting additional columns to a crosstab query is less straightforward than adding row data, because SQL naturally groups data by rows. Moreover, the efficacy of the CASE statement within an aggregate function decreases in direct proportion to the complexity of the criteria. Read on
The correct approach to rolling MySQL logs
(Ronald Bradford) I say correct because there are several incorrect approaches to managing MySQL logs. In MySQL you have two important log files, the MySQL error log (configured with –log-error) and the MySQL slow query log (configured with –log-slow-queries or –slow-query-log and –slow-query-log-fi
MySQL Multi-Aggregated Rows in Crosstab Queries
(Rob Gravelle) Today’s topic of discussion is crosstabs, which contain multiple aggregate functions in the row axis of a tabular resultset. Recall from the the All About the Crosstab Query article that an aggregate function is one that summarizes a group of related data in some way. Examples of aggr
Migrating MySQL latin1 to utf8 – Character Set Options
(Ronald Bradford) Continuing on from preparation in our MySQL latin1 to utf8 migration let us first understand where MySQL uses character sets. MySQL defines the character set at 4 different levels for the structure of data.
MySQL Cluster Disk Data Tables
(Andrew Hutchings) MySQL Cluster is well known as an in-memory database which can be restrictive (a server typically has a RAM limit) so it may surprise some to learn that you can also store MySQL Cluster data on disk. Disk Data Tables have been in MySQL Cluster for quite a while, the first GA rele
PHP Binding a Wildcard
(Michael McLaughlin) Somebody asked me about how you bind a parameter in mysqli when a multiple character wildcard needs to be next to the variable value. They’d found that it worked when creating a SQL statement by concatenation (string gluing), like this:
MySQL – the best stored routine is the one you don’t write
(Roland Bouman) At Fosdem 2010, already two weeks ago, I had the pleasure of hearing Geert van der Kelen explain the work he has been doing on connecting MySQL and Python. I don’t know anything about Python, but anybody that has the courage, perseverance and coding skills to create an implementation
How to tell when using INFORMATION_SCHEMA might crash your database
(Sheeri Cabral) There are those that are very adamant about letting people know that using INFORMATION_SCHEMA can crash your database. For example, in making changes to many tables at once Baron writes:
To not yum or to not apt-get?
(Shlomi Noach) I’ve written shortly on this before. I like yum; I love apt-get; I prefer not to use them for MySQL installations. I consider a binary tarball to be the best MySQL installation format (source installations being a different case altogether).
