wallpaper rama - Mysql How To Select Display Last Row Item Retrieve Query SQL From Database


wallpaperramaForumsMYSQL



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:
<?php
$qry = "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

Copyright © 2012 www.wallpaperrama.com All Rights Reserved

Hosting By Webune.com