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 8510245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:38:58+00:00 2026-06-11T03:38:58+00:00

Whenever a query like select * from table where userid=xx is done, the mysql

  • 0

Whenever a query like
"select * from table where userid=xx" is done, the mysql fetches these values from
first row to last row of table.

But I want to select from last to first so that recently updated values are displayed first in the results.

I cannot do "select * from table where userid=xx order by time DESC" because there is no time column in table.
I just want recently updated items in the table displayed first.

  • 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-06-11T03:38:59+00:00Added an answer on June 11, 2026 at 3:38 am

    If you have any auto-incrementing field you could sort by that desc.

    You must provide a column to order by in order to guarantee results. So you will have to either change your table structure or make a decision on what to order by.

    A hack would be to pull in the data in the order presented into an array, then start popping off the bottom of that array.

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

Sidebar

Related Questions

I have a QUERY which is like SELECT COUNT(*) as cnt FROM tbl_docatrtypegroupdoctype, tbl_doctype,
I have a MySQL query like this: SELECT *, SUM(...some SQL removed for brevety)
I have a MySQL query that goes as follows SELECT count(`clicks`.`user_id`) as total, `users`.`fullname`
I am trying to insert a mysql query itself into a table field(Executing a
For some reason whenever I want to query data from the database I get
I have a MySQL table like this: CREATE TABLE IF NOT EXISTS `mytable` (
Whenever you write a query where you need to filter out rows on a
$(#epFilter).keypress(function(){ query = $(#epFilter).val(); alert(query); }); In this code, whenever I type in my
I'm trying to iterate through some JSON results from the YQL geo.places table using
Can someone explain how to create a .php page which auto-updates with values from

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.