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
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.