81,122
社区成员




for(int i=0;i<list.size();i++)
{
String tmp = list.getKey("id");
String sql = "select count(*) from tablename where id = '"+tmp+"'";
int count = executeQueuery(sql);
if(count<1)
insert(tmp);
else
update(tmp);
}
for(int i=0;i <list.size();i++)
{
String tmp = list.getKey("id");
String sql = "select count(*) from tablename where id = '"+tmp+"'";
int count = executeQueuery(sql);
if(count <1)
insert(tmp);
else
update(tmp);
}