Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Re-indexing a SQL resultset by id

by Juerd (Abbot)
on Jul 09, 2011 at 23:42 UTC ( #913556=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Re-indexing a SQL resultset by id
in thread Re-indexing a SQL resultset by id

SELECT * FROM student_classes;
Will you get several instances of each id? Yes?

Yes, but these fields are not called 'id'; here, it's just a suffix. A join, however, could result in multiple rows of the result set with the same id, even in a nice database design, so I do retract my observation about the database perhaps not being well-designed.

Juerd


Comment on Re^3: Re-indexing a SQL resultset by id

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://913556]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-10-23 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (128 votes), past polls