Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5786
Posted 10/19/07 - 02:36 PM:
#2
It's not testing for equivilance, it's assigning a value and testing for whether there are any more rows left to fetch (at which point the whole expression becomes false and the loop terminates).
I also find it a little counterintuitive which is why I usually use for loops instead of while loops for that, but while is a shorthand when there's no real need to keep track of the row number.