Category Archives: Database

MySQL, PostgreSQL, SQL Server, Oracle, SQLite.

Dirty Rows and Audit Trails with Zend_Db_Table

There are various ways to update rows in a database table using the Zend_Db_Table components. You can use use Zend_Db_Table::update(), like so: $table = My_Table(); $table->update(array('age' => 22), 'id = 1'); or retrieve the row, and update it: $table = … Continue reading

Posted in Database, Development, PHP, Zend Framework | Tagged , , , , , , , , , , | 1 Comment

Zend_DB_Select Woes

It's no secret, I'm a fan of the Zend Framework, which I've been using since version 0.15. A lot of components have been added since then, and many of the initial components have been refactored and enhanced, and have matured. … Continue reading

Posted in Database, Development, PHP, Zend Framework | Tagged , , , , , , , , | Leave a comment

Indexes in PostgreSQL

One thing that most people don't have to worry about in MySQL is case-sensitivity. Unless you're trying to authenticate a user against a database password and don't use MD5 (like you should!), in which case the password is not case … Continue reading

Posted in Database | Tagged , , , | Leave a comment