Serial number of a record
Serial number of a record
От:
"ashok@kalculate.com" <ashok@kalculate.com>
Дата:
Hi List, I have one table something like this Name Age ================= tom 20 ram 25 shyam 30 balram 15 hari 10 Now i want serial number of a record. Suppose if i will fire a query "select Name from tablename where age=30". it will give output "shyam" but i also want record no. other then oid, in this case it is 3. is it possible? if yes then how? plz. help me. Thanks Ashok -------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange
Re: Serial number of a record
От:
Andrew Sullivan <ajs@crankycanuck.ca>
Дата:
On Tue, May 15, 2007 at 07:40:25AM -0400, ashok@kalculate.com wrote: > Suppose if i will fire a query "select Name from tablename where age=30". > it will give output "shyam" but i also want record no. other then oid, in > this case it is 3. > > is it possible? > if yes then how? > plz. help me. This depends. Does the record have a serialno field? If not, you can do it with a temporary sequence. But you should be aware that this "serial number" as you call it changes from result to result in that case. A -- Andrew Sullivan | ajs@crankycanuck.ca The whole tendency of modern prose is away from concreteness. --George Orwell