Raised This Month: $ Target: $400
 0% 

MySQL Question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sumguy14
Senior Member
Join Date: Apr 2006
Old 08-12-2007 , 16:38   MySQL Question
Reply With Quote #1

MySQL Noob Question

How do I get the in index of a row?

Code:
+-----+------+
|  id |  xp  |
+-----+------+
|  4  |  10  |
+-----+------+
|  1  |  15  |
+-----+------+
|  2  |  5   |
+-----+------+
|  3  |  40  |
+-----+------+
How would I find how many rows down 'id' "2" is? (it should be 3, if you start from 1)
__________________
Don't think of them as bugs think of them as unexpected features
sumguy14 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode