on-internet
← Community

com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'hourId' cannot be null

Stack Overflow ·

My project is faculty allocation. when i try to insert data, it shows the following exception. "com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'hourId' cannot be null" Can anyone help me how to overcome this problem? Please provide sample code to avoid this exception. My coding is <% Connection con = null; String StaffName = request.getParameter("StaffName"); // String subcode = request.getParameter("subcode"); String hourId = request.getParameter("hourId"); String daysId = request.getParameter("daysId"); String date = request.getParameter("date"); //String

Comments

Sign in or sign up to comment and upvote.

No comments yet.