81,094
社区成员
发帖
与我相关
我的任务
分享
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);
}