php - How to Set a Value to NULL when using Zend_Db -
While updating using Zend_Db and displaying the INSERT query, I often set the value equal to NULL (not '') Need to do However, the default behavior of Zend_Db :: insert () and Zend_Db :: update () seems that the empty values are translated into empty strings ('') and put into the database.
Itemprop = "text">
Try setting the affected areas to: New Zend_Db_Expr ('NULL')
Comments
Post a Comment