I've come up with some interesting workarounds for missing
features using @session variables and I'd like to share one with
you today: DELETE ... JOIN ... LIMIT N;
okay, so we've got two tables, one with many duplicates and one
with no duplicates.
We want to join the tables using 'id', but only want to delete N
duplicates from t1.
MySQL's DELETE does not include LIMIT support when JOIN is used,
so we need to work around
that using some fancy footwork:
mysql> select * from t1;
+------+------+
| id | abc |
+------+------+
| 1 | 1 |
| 1 | 1 |
| 1 | 1 |
| 1 | 1 |
| 1 | 1 |
| 1 | 1 |
| 1 | 1 |
| 1 | 1 |
+------+------+
8 rows in set (0.00 sec)
mysql> select * from t2;
+----+------+
| id | xyz |
+----+------+
| 1 | 1 |
+----+------+
1 row …
The latest from the MySQL community
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
Stewart.
With a t at the end. Not a d.
Get it wrong once, possible mistake.
When I correct you, and you do it *again* and *again*, I want to slap you in the face with a keyboard.
It’s especially bad when you’re replying to my email, as my name is spelt correctly at least THREE TIMES right in front of you (Twice in “To: Stewart Smith <stewart@…>” and again in “On X, Stewart Smith wrote:”.
(and if you’re wondering why I’ve tagged this post with “sun” and “mysql” it’s because some of you people are the worst offenders)
kthxbye
The title of MySQL’s website states that they are the world’s most popular open-source database. This is false; MySQL is not an open-source database. That assertion is a fact, not an opinion. MySQL is Free Software, licensed under the GNU GPL. People frequently use the two phrases “Free Software” and “Open Source Software” as synonyms, but there are very large, very important differences. The difference between Free and Open Source Open Source is much more of a development methodology than a philosophical standpoint.
Update: I’ve been suffering some ungly and stupid bugs today, so I’ve fixed them and released version 0.2. It also includes a new script wp-update-home.
I’ve just published some scripts that help me manage my personal
wordpress installations, and publish some plugins I’m working on.
Warning: these are early versions which I use
for small tasks. If you find
a bug or have suggestions, contact me at jbernal@warp.es
Download version 0.1 …
[Read more]As you know we love to analyze performance of various MySQL features, benchmark, compare, analyze things and post our findings on MySQL Performance Blog. However recently we got too busy with serving out customers and the backlog of things to take a look and write about is just growing larger and larger. So we decided to hire someone who could focus on such tasks.
What are we expecting from MySQL Performance Engineer ?
- Such person should have a passion for making things to work fast or finding why they are slow.
- One should have an "evil mind" to be able to put system in the conditions developers would not think about.
- One should have an "X-Ray vision" understanding what happens on all layers (MySQL, Operation System, Hardware) when for example row is being inserted into Innodb table on Linux stored on LVM volume over …
From the release notes:
http://docs.fedoraproject.org/release-notes/f9/en_US/sn-DatabaseServers.html#sn-MySQL-DBD
The MySQL DBD driver has been dual-licensed and the related
licensing issues have been resolved (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=222237).
The resulting apr-util-mysql package is now included in the
Fedora software repositories.
I had wondered if they would ever get that in.
Here's my presentation I gave May 12, 2008, at the Twin Cities MySQL and PHP User Group about my experience at the 2008 MySQL Conference and Expo.
Thanks to all of those that came. I had a great time!
Here's my presentation I gave May 12, 2008, at the Twin Cities MySQL and PHP User Group about my experience at the 2008 MySQL Conference and Expo.
Thanks to all of those that came. I had a great time!
It is 23:30 here in Kiev and we are closing the first day of our team meeting.
After my Kick-Off and general discussion of the road-map Tax took over and was discussing the QA aspect of our WB 5.0 releases so far. We analyzed the rate of incoming bugs vs. the number of bug fixes and the time spans between Alpha, Beta, RCs and GA releases. That helps us to make better predictions in the future.
After the lunch break Alfredo presented his conversion of the GRT (WB core system) from the current C implementation to a cleaner C++ version and we forgot about the time discussing all the details of this complex tasks. We will squeeze in the rest of the planned sessions for today (Linux Porting Challenges, Feature Discussion - Visual Query Builder) tomorrow morning - but this was a very important discussion to have.
We went out for dinner and just as we walked outside it started raining. The center of Kiev is very beautiful and …
[Read more](This blog entry was written and co-posted together with my friend and the CEO of Warp Networks and EBox Platform, Ignacio Correas. Copyright notice: Please note that pictures embedded in the story by Ignacio are certainly not Creative Commons licensed anything.)
Ignacio: I have always considered MySQL as the best model for open source companies. Their approach to the market, the execution of different business models, their relation with the community or the way their work internally as a virtual organization have shown an innovative and successful example of how an IT company in the 21st century can be managed.