Re: Select START and MAXVALUE from Sequence

From: "Lukas" <lukas(at)fmf(dot)vtu(dot)lt>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Select START and MAXVALUE from Sequence
Date: 2009-01-27 14:03:47
Message-ID: 24996.217.117.29.29.1233065027.squirrel@fmf.vgtu.lt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

yes it works - select min_value, max_value from MySeq;
But what about start value? I tryed to select start_value but no luck..

--
Lukas
UAB nSoft
http://www.nsoft.lt
Lukas at nsoft.lt
+370 655 10 655

> 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
> --
> Andreas Kretschmer
> Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
> GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
>
> --
> Sent via pgsql-novice mailing list (pgsql-novice(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>
> --
> This message has been scanned for viruses and
> dangerous content by OpenProtect(http://www.openprotect.com), and is
> believed to be clean.
>
>

--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message A. Kretschmer 2009-01-27 14:21:59 Re: Select START and MAXVALUE from Sequence
Previous Message postgres-novice 2009-01-27 13:04:42 Array of C integers to temporary table?