Re: [fw-general] Delete all the rows of a table

2009-02-12 Thread william0275

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

2009-02-12 Thread Jason Austin

$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

2009-02-12 Thread Jason Webster

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

2009-02-12 Thread debussy007

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.