Re: Trigger to reset auto increment after the table empty
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.
Subject
Views
Written By
Posted
4154
April 25, 2014 12:55AM
Re: Trigger to reset auto increment after the table empty
1977
April 25, 2014 02:44AM
1633
April 25, 2014 02:49AM
1538
May 03, 2014 09:08PM
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.