![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: reordering a stack with little effortby jhourcle (Prior) |
on Mar 11, 2005 at 02:07 UTC ( #438495=note: print w/replies, xml ) | Need Help?? |
If you're using Oracle, it's fairly easy:
If you're using some other database, you can just tick off a counter as you pull them out. You then print and/or refer to the questions by those numbers when you're talking to the user taking the survey. If you're adding/removing questions at a whim, they only really have a 'number' in this sense once the survey/quiz/questionaire/whatever is instantiated, and may change for any other instance. (to build on what Zaxo said) Update: oops...ROWNUM, not ROW_NUM
In Section
Seekers of Perl Wisdom
|
|