如果我没有在类型前添加“ WHERE ”,则会收到“类型”错误
string sql = "UPDATE Resource SET " + "location='" + location + "'" + "WHERE levelNo='" + levelNo + "'" + "Type='" + type + "'" + " Abr='"+ abr + "'" + " Description='" + description + "'" + " Capacity='" +capacity +"'" + " Detail='" + detail + "'";
但如果我把它说出来,我会得到“ WHERE ”的错误
string sql = "UPDATE Resource SET " + "location='" + location + "'" + "WHERE levelNo='" + levelNo + "'" + "**WHERE** Type='" + type + "'" + " Abr='"+ abr + "'" + " Description='" + description + "'" + " Capacity='" +capacity +"'" + " Detail='" + detail + "'";