Here's a handy tip that you can apply to all your code. In a catch block, never, never, never, never, never do something like System.out.println("Error HRadd"); At the very least dump the exception so that you can see what went wrong:
There is no emoticon for what I am feeling!
Joined: Aug 20, 2001
Take a look at your error message that you receive, and then take a look at your code. Do you really have a table named "table"?
You probably want your statement to read more like:
INSERT INTO EMPLOYEE(EmpId) VALUES(565)
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
If it turns out that the error is something to do with the syntax of that SQL, it's probably because this statementdidn't leave a blank space between the column list (EmpID) and the word "values". Was it really necessary to do that string concatenation instead of just using a single string literal? Makes it much easier to make mistakes like that.