Mysql How To Select Display Last Row Item Retrieve Query SQL From Database
mysql how to select display last row item retrieve query sql from database
mysql, how, to, select, display, last, row, item, retrieve, query, sql, from, database
Mysql How To Select Display Last Row Item Retrieve Query SQL From Database
Post Description: mysql how to select display last row item retrieve query sql from database
POST# 555
Posted On: Fri Feb 29, 2008 12:01 pm
web hosting
Topic: Mysql How To Select Display Last Row Item Retrieve Query SQL From Database
this Returns the last row from a select where multiple rows in a database table. for example, lets say i have a table called users, and i want to get the last user who registered with the userid as the row. i could use this mysql query:

Code/Command:

$sql= "SELECT * FROM users ORDER BY userid DESC LIMIT 1";



related questions:
How to find last row and last column of table
Retrieving last row inserted
How to select the Last row from a table..using Mysql - MySQL
How to retrieve the last row in MYSQL database using SELECT


No Repies
(0) Comments for Mysql How To Select Display Last Row Item Retrieve Query SQL From Database

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload