//this is my query for single deletion of record.
public void deleteEmpDetails(int emp_Id){
String sql="delete from EmpDetails where emp_Id="+emp_Id;
JdbcTemplate jdbcTemplate=new JdbcTemplate(dataSource);
jdbcTemplate.update(sql);
}
请告诉我多行删除的查询是什么。请给我解决方案。
最佳答案
delete from EmpDetails where emp_Id in (1, 2, ...)
关于mysql - 我的sql中删除多条记录的查询是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32092295/