MySQL Forums
Forum List  »  Triggers

Re: Trigger to reset auto increment after the table empty
Posted by: Peter Brawley
Date: May 03, 2014 09:08PM

1. User vars may not be declared.

2. LIMIT 1 is redundant in a Select Count(colname) query.

3. Lose SET in the auto_incr cmd.

4. IF ... END IF

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Trigger to reset auto increment after the table empty
1579
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.