Fork me on GitHub
Jun 3 2007

MySQL: Dynamic Select Queries

Please wait

As we start to transfer our code to stored procedures, now we would have to start putting more logic in MySQL than before. In the past we would create an sql statement in our hosting language, and pass it by to mysql, put as we see the more improvement of performance and security in writing stored procedures, (also we employee people just experienced in MySQL to handle the sql Job) we now need a way to manipulate our sql statements with sql itself. Continue reading


Sep 10 2006

NULL Is Not A Value

Please wait

Before a few months, I was working on some mysterious issue regarding some SQL statements, it was something like this.
SELECT count(*) from some_table WHERE (condition_a);
the result was:

+----------+
| count(*) |
+----------+
|   11223  |
+----------+

Continue reading