我想删除一些info
比较另一个表的表行type
,我的代码如下。我没有收到任何错误或异常,但我仍然无法删除数据。请建议我
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();
}