execFromPool()
execFromPool("sql語法"):執行異動資料庫(insert, delete, update)的SQL
String cusNo = getValue("客戶編號").trim();
String cusName = getValue("公司名稱").trim();
String contact = getValue("連絡人").trim();
String contactTitle = getValue("連絡人職稱").trim();
String phone = getValue("電話").trim();
String fax = getValue("傳真電話").trim();
String sql = "UPDATE 客戶 SET 公司名稱='"+cusName+"', 連絡人='"+contact+"',連絡人職稱='"+contactTitle; sql += "', 電話='"+phone+"', 傳真電話='"+fax+"' WHERE 客戶編號='"+cusNo+"'";
try{
getTalk("nwcs").execFromPool(sql);
}catch(Exception e){
message(e+"");
return value;
}
message("異動成功");