Limit number of Rows inserted into a Table

后端 未结 1 625
旧时难觅i
旧时难觅i 2021-01-24 17:05

How can we restrict a table to have fixed number of rows? for example if i give Limit as 20, then 20 rows can be inserted into it and after that table should indicate the limit

相关标签:
1条回答
  • 2021-01-24 17:28

    Create a Trigger before Insert on That table. In Trigger you can check for count for records that same table has.

    Check this link for Creating Trigger.

    0 讨论(0)
提交回复
热议问题