-2

I need to limit sellers to insert 10 rows only in my mysql table with paricular seller id?

Edwin
  • 1

1 Answers1

0

It looks like you could get started here to limit rows for MySQL using triggers: How to limit number of the many in a one-to-many relationships between two tables?

Although, from my personal experience, it is a way better practice to place this limitation in your code that inserts the rows to the database than in the database itself. It will make everything a lot more manageable and eventually allow to change this limitation on a per-user basis.

Community
  • 1
  • 1