i am creating a project in Training and Placement.i have a created a company register part where i create a dynamic table for every company.but whenever i'm inserting values to the company sql server showing a syntax error. my code is as follows:- PreparedStatement ps1=con.prepareStatement("insert into "+company+year+"(firstname,lastname,email,status,marks) values(?,?,?,?,?)"); and i put all those firstname,lastname from student table. and company and year value i'm getting through company table.but apache showing an error invalid syntax on year. please help me to solve this...
Please visit the following link:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.