When used in conjunction with the optional (nonstandard) attribute ZEROFILL, the default padding of spaces is replaced with zeros. For example, for a column declared as INT(4) ZEROFILL, a value of 5 is retrieved as 0005.
if ($condition) {
$query->where('blabla = ?', $blabla)
} else {
$query->where('foo = ?', $foo);
}