Обсуждение: How to find the definition of a sequence ?

Поиск
Список
Период
Сортировка

How to find the definition of a sequence ?

От
Liviu BURCUSEL
Дата:
Hi !
I have a database created by a friend of mine. In it there is a sequence
called seq_id_top. How can I find out its definition (start, increment,
max value) ?

I use version 7.3.2

Many thanks in advance,
--
Liviu BURCUSEL
Registered Linux User #221627
 5:44pm  up  8:13,  6 users,  load average: 0.08, 0.09, 0.13

Re: How to find the definition of a sequence ?

От
Adam Witney
Дата:
select * from seq_id_top;

Should give you what you want


> Hi !
> I have a database created by a friend of mine. In it there is a sequence
> called seq_id_top. How can I find out its definition (start, increment,
> max value) ?
>
> I use version 7.3.2
>
> Many thanks in advance,


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Re: How to find the definition of a sequence ?

От
"Williams, Travis L, NPONS"
Дата:
select * from seq_id_top

Travis

-----Original Message-----
From: Liviu BURCUSEL [mailto:liviu@voxline.ro]
Sent: Wednesday, June 11, 2003 9:47 AM
To: pgsql-general@postgresql.org
Subject: [GENERAL] How to find the definition of a sequence ?


Hi !
I have a database created by a friend of mine. In it there is a sequence
called seq_id_top. How can I find out its definition (start, increment,
max value) ?

I use version 7.3.2

Many thanks in advance,
--
Liviu BURCUSEL
Registered Linux User #221627
 5:44pm  up  8:13,  6 users,  load average: 0.08, 0.09, 0.13

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Re: How to find the definition of a sequence ?

От
Tom Lane
Дата:
Liviu BURCUSEL <liviu@voxline.ro> writes:
> I have a database created by a friend of mine. In it there is a sequence
> called seq_id_top. How can I find out its definition (start, increment,
> max value) ?

SELECT * FROM seq_id_top;

            regards, tom lane

Re: How to find the definition of a sequence ?

От
Thomas Kellerer
Дата:
SELECT * FROM seq_id_top

Liviu BURCUSEL schrieb:
> Hi !
> I have a database created by a friend of mine. In it there is a sequence
> called seq_id_top. How can I find out its definition (start, increment,
> max value) ?
>
> I use version 7.3.2
>
> Many thanks in advance,