st1.executeUpdate("update "+str[i]+" set m_body=s where c_id="+str5); 是不是应该改成这样:st1.executeUpdate("update " + str[i] + " set m_body='" + new String(s) + "' where c_id=" + str5);单引号前可能要加转义符.
//不好意思,问一句:楼主为什么在 if(d!=c) 这里不用字符串的方法判断相等呢?// 很惭愧,我不知道在JAVA里这个方法的名字。。 另外,我这样改了还是不好使 st1.executeUpdate("update " + str[i] + " set m_body='" + new String(s) + "' where c_id=" + str5); 我想是不是在程序的结构方面有问题?总是到这条语句就发生异常:table not found
是不是应该改成这样:st1.executeUpdate("update " + str[i] + " set m_body='" + new String(s) + "' where c_id=" + str5);单引号前可能要加转义符.
if(d!=c)
这里不用字符串的方法判断相等呢?//
很惭愧,我不知道在JAVA里这个方法的名字。。
另外,我这样改了还是不好使
st1.executeUpdate("update " + str[i] + " set m_body='" + new String(s) + "' where c_id=" + str5);
我想是不是在程序的结构方面有问题?总是到这条语句就发生异常:table not found