Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6211833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:24:24+00:00 2026-05-24T06:24:24+00:00

I like being able to go to phpmyadmin and seeing my rows ordered. Is

  • 0

I like being able to go to phpmyadmin and seeing my rows ordered.
Is there an easy way to insert a row into the correct order by it’s primary key?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:24:25+00:00Added an answer on May 24, 2026 at 6:24 am

    There is no order you can rely on.

    Unless you specify ORDER BY, there are no guarantees about what rows
    will be returned first.

    But in practice, the order will typically match the clustered index
    order, and will not vary between calls. Don’t rely on this behaviour.

    Does MySQL’s LIMIT keyword guarantee order of returned data?

    There is no default sort order. Even if the table has a clustered
    index, you are not guaranteed to get the results in that order. You
    must use an order by clause if you want a specific order.

    SQL best practice to deal with default sort order

    Just insert the data; tables are not fundamentally ordered. The only ordering of table results occurs when you define it yourself in your select statement.

    Is it possible to insert data into the mid section of a table using the INSERT command?

    You can’t. There is no such thing.

    To be precise: in MyISAM engine, current order is whatever the order
    was when the last ALTER TABLE ORDER BY was performed, modified by all
    the deletions and insertions since.

    InnoDB just sorts the tables as it wishes.

    view current table order

    However be aware of the advice from another poster above: the order in
    which rows are returned without an ORDER BY clause is arbitrary and
    may change without notification. It would be best to amend your table
    if at all possible.

    Reverse the “natural order” of a MySQL table without ORDER BY?

    …. and maaany more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to know if there's some PDF library in Microsoft .NET being able
Background: I'm coming from C#-land, so I'm looking for something like being able to
I want some of the goodies in a ListView, like being able to use
For example: Being able to start displaying or manipulating rows as they are being
I really like being able to organization my objects like this where Source is
I like being able to measure performance of the python functions I code, so
I really like being able to use =~ and !~ in Perl to evaluate
I really like being able to the command-line tool gitx from Terminal.app to open
I really like being able to the command-line tool gitx from Terminal.app to open
I really like being able to the command-line tool gitx from Terminal.app to open

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.