最新记录正在mysql的第一行输入

最新记录正在mysql的第一行输入,mysql,node.js,Mysql,Node.js,我在mysql表中使用自动递增,当我在记录中输入新值时,它们应该位于当前行的下方,但它们位于第一行,当前记录向下移动一行。 这是我在node.js中插入值的代码部分。雇主id设置为自动增量 bcrypt.hash(employer_password, 10, function(err, hash) { connection.query("insert into fyp_employers(Employer_id,Employer_Fname,Empl

我在mysql表中使用自动递增,当我在记录中输入新值时,它们应该位于当前行的下方,但它们位于第一行,当前记录向下移动一行。 这是我在node.js中插入值的代码部分。雇主id设置为自动增量

  bcrypt.hash(employer_password, 10, function(err, hash) {                 
    connection.query("insert into fyp_employers(Employer_id,Employer_Fname,Employer_Lname,Email_Address,Employer_Address,Employer_City,Employer_Password,Employer_CNIC,Employer_Contact) values(?,?,?,?,?,?,?,?,?)",
        [null,employer_fname,
        employer_lname,employer_email,employer_address,Employer_City,hash,employer_cnic,employer_number],function(err){
        if(err)
            console.log(err);
        else
        response.send("successful");
        }); 
    });

sql中没有默认的order by。。。如果您在首选顺序中看到一些结果,请在select查询的末尾使用order by。sql中没有默认的order by。。。如果您在首选顺序中看到一些结果,请在select查询的末尾使用order by。。