我想删除一些表信息行比较另一个表类型,
我的代码如下.我没有收到任何错误或异常仍然无法删除数据.请建议我
String query = "delete from info where _id in " +
"( select a._id " +
" from info a,type b," +
" where a.t_id = b._id and b.type_name = 'Petrol' )";
try{
database.rawQuery(query,null);
}catch (Exception e){
e.printStackTrace();
}
最佳答案