Answer the question
In order to leave comments, you need to log in
Is it possible to limit the number of records with a given key in mysql?
There is a table in the database that has a class column that can be repeated. How can I put a limit on the number of entries with the same class. I know that it is possible to create a trigger that, when inserted, will check the number of records with the selected class. But isn't there an easier way, something like ALTER TABLE MAX_ROWS?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question