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

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c - Different access levels with PAM -