[處理記要] 升級stud_domicile
2006-10-28 在stud_domicile 中補 student_sn
$query ="select a.student_sn,a.stud_id from stud_base a , stud_domicile b
where a.stud_id=b.stud_id and b.student_sn=0";
$res=$CONN->Execute($query);
while(!$res->EOF) {
$CONN->Execute("update stud_domicile set student_sn='".$res->fields[student_sn]."' where stud_id='".$res->fields[stud_id]."'");
$res->MoveNext();
}
up20061028.php
這段 query 是有問題的
因為stud_domicile 沒有加入 student_sn 欄位前
查詢的語法本身就不正確