Add only 10 records using Java in Mysql -


i making application in java using netbeans. want admin can add 10 users record , after 10 users added in database admin not able add more users(my idea buttons disable after 10 users addition). using mysql record saving.

fire count query on table. , use resultset restrict(validate, records<=10) before app(client) enters new value. or put constraint in schema design itself.


Comments

Popular posts from this blog

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Can Piwik report referrer in real time? -