MySQL Forums
Forum List  »  Triggers

Re: Trigger to reset auto increment after the table empty
Posted by: Peter Brawley
Date: April 25, 2014 02:44AM

Reset autoinc to 1 in MySQl:

alter table tbl set auto_increment=1;

I don't know Firebird syntax well enough to translate the Trigger to MySQL, but you wrote the Trigger in Firebird, so once you read the MySQL manual chapter on Triggers, you'll know how to proceed.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Trigger to reset auto increment after the table empty
2056
April 25, 2014 02:44AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.