if(!$this->nResult=mysql_query($strSQL)) { $this->nErr=1; $this->sErr="Query:SQL语句:".$strSQL." MySql错误:".mysql_error()." "; return; } $this->nOffset=0; $this->nRows=mysql_num_rows($this->nResult); $this->nCols=mysql_num_fields($this->nResult); if($this->nRows>0) $this->EOF=false; else $this->EOF=true; unset($this->aFName); $this->aFName=array(); for($i=0;$i<$this->nCols;$i++) $this->aFName[$i]=strtolower(mysql_field_name($this->nResult,$i)); }
function MoveNext() { if($this->EOF) { $this->nErr=1; $this->sErr="MoveNext:已经移到记录集末尾!"; return; } $this->nOffset++; if($this->nOffset>=$this->nRows)
上一篇:阅兵:Sql server 2005数据库列表合计
下一篇:如何自动发布MS SQL SERVER数据库
|