What is the data for the insertion

Source: Internet
Author: User
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);
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.