Why is the data always inserted?
This post was last edited by YXQC on 2014-05-05 14:20:32
From one database to another, there are 8 million data in the table.
while ($mssql _row = Mssql_fetch_array ($rs))
$MID = $mssql _row[0];
$sql = "INSERT into Flow01 (TDM,) VALUES (' $TDM ',)";
mysql_query ($sql);
And the ID of the inserted table is already more than 900,000, there is no stopping the meaning, is not the cycle of death???
------Solution--------------------
Help top, should not be dead loop ah, can output get how many records to see
------Solution--------------------
This paragraph alone can not see all the code to stick out to see
------Solution--------------------
I don't see a dead loop.
------Solution--------------------
Also don't see where the cycle of death, you can use
Select COUNT (*) from T_tunao
See how many records there are in total ~ ~
------Solution--------------------
$sql = "INSERT into Flow01 (TDM,) VALUES (' $TDM ',)";
The following is a log record of the $sql, after the run to see what the record of SQL is.
File_put_contents (' Sql.log ', $sql. " \ r \ n ", file_append);