Re: [fw-general] Delete all the rows of a table
Now, just to be fussy, you could even simply do a 'where 1', so $where = '1'; $object->delete($where); :-) Jason Austin wrote: > > $where = '1=1'; > > $object->delete($where); > > - Jason > > -- View this message in context: http://www.nabble.com/Delete-all-the-rows-of-a-table-tp19510519p21984720.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Delete all the rows of a table
$where = '1=1'; $object->delete($where); - Jason debussy007 wrote: Anyone ? debussy007 wrote: Hi, I'm using Zend_Db_Table_Abstract. I need to delete all the rows of my table, I know there is a ->delete() function but it asks a where condition. How can I delete all the rows ? Thank you. -- Jason Austin Senior Solutions Implementation Engineer NC State University - Office of Information Technology http://webapps.ncsu.edu 919.513-4372
Re: [fw-general] Delete all the rows of a table
Just use a where expression that will always evaluate to true. (1=1.. etc) On 12/02/2009 9:40 AM, debussy007 wrote: Anyone ? debussy007 wrote: Hi, I'm using Zend_Db_Table_Abstract. I need to delete all the rows of my table, I know there is a ->delete() function but it asks a where condition. How can I delete all the rows ? Thank you.
Re: [fw-general] Delete all the rows of a table
Anyone ? debussy007 wrote: > > Hi, > > I'm using Zend_Db_Table_Abstract. > I need to delete all the rows of my table, I know there is a ->delete() > function but it asks a where condition. > > How can I delete all the rows ? > > Thank you. > -- View this message in context: http://www.nabble.com/Delete-all-the-rows-of-a-table-tp19510519p21980985.html Sent from the Zend Framework mailing list archive at Nabble.com.