How about

db.table.truncate()

On Saturday, 26 April 2014 17:30:05 UTC-5, Christian Foster Howes wrote:
>
> auto increment IDs are implemented differently on different databases.  
> the instructions for mysql vs postgres are different for example.  It's 
> best to check the documentation for the database that you are using.
>
> i'm assuming that you have already removed all rows from the table. :)
>
> cfh
>
> On Thursday, April 24, 2014 2:42:05 PM UTC-7, Flavio Santos wrote:
>>
>> How to set an auto increment id back to zero (automatically) table 
>> auth_user?
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to