發新話題
打印

[處理記要] 升級stud_domicile

[處理記要] 升級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 欄位前
查詢的語法本身就不正確
  華府低等下人
不要叫我教Windows,因為我的薪水不是比爾蓋兹付的。

TOP

發新話題