Skip site navigation (1) Skip section navigation (2)

Re: Select START and MAXVALUE from Sequence

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Select START and MAXVALUE from Sequence
Date: 2009-01-27 10:49:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
In response to Lukas :
> Hello,
>  Is here any way to get START and MAXVALUE from sequence in select query.
> I mean something like this:
> Select startval('MySeq'); --This can not work of course.

select min_value, max_value from MySeq;

Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA

In response to


pgsql-novice by date

Next:From: postgres-noviceDate: 2009-01-27 13:04:42
Subject: Array of C integers to temporary table?
Previous:From: LukasDate: 2009-01-27 10:27:35
Subject: Select START and MAXVALUE from Sequence

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group