If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > The way to number lines

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-24-04, 19:16
ffert ffert is offline
Registered User
 
Join Date: Mar 2004
Location: France
Posts: 10
Question The way to number lines

Hi,

I also have a problem :

I want to give a number of every lines returned by a SELECT in mysql, how can I do that ? (like RowNumber, or RowNum, in other DB)...

If it is possible, does this provide me to do data pagination ?

thank you very much...
bye
__________________
DataBase, Delphi, php, Yes, I like....
Reply With Quote
  #2 (permalink)  
Old 06-24-04, 19:24
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
sorry, no
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 06-24-04, 19:31
ffert ffert is offline
Registered User
 
Join Date: Mar 2004
Location: France
Posts: 10
Thumbs up thank you

thank you for all the answer you give to me... they will be very helpfull for me...

bye
__________________
DataBase, Delphi, php, Yes, I like....
Reply With Quote
  #4 (permalink)  
Old 06-25-04, 12:03
smithhayward smithhayward is offline
Registered User
 
Join Date: Apr 2003
Location: Edison, NJ / Oakland, NJ (Work)
Posts: 32
Exclamation Um... Yeah you can...

r937, why would you say that?

You can use PHP to do this, but why when someone already has. Try EZResults (http://www.jvmultimedia.com).

If you use PHP and MySQL together, I also recommend his ezSQL. Top Notch.
__________________
-----------------------------------
Smith Hayward
-----------------------------------
Reply With Quote
  #5 (permalink)  
Old 06-25-04, 13:11
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
Quote:
Originally Posted by smithhayward
r937, why would you say that?
why would i say "no, mysql can't do that"?

because it can't

if you know how, please enlighten me

i do know how to do it with a subquery, but...



and thanks for asking, but no, i do not use php and mysql together

i use coldfusion

in coldfusion, it's built right in, use the CurrentRow query variable

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On